You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Of course, it is uninitialized (unless it is declared at global namespace scope), ..."
This is independent of the global namespace but rather applies to all variable definitions at namespace scope, i.e. variables with static storage duration [basic.start.static]
int a;
namespace N1 {
int b = 1;
namespace N2 {
int c = 2;
}
}
compiles to
a: .zero 4
N1::b: .long 1
N1::N2::c: .long 2
The text was updated successfully, but these errors were encountered:
Page 43
"Of course, it is uninitialized (unless it is declared at global namespace scope), ..."
This is independent of the global namespace but rather applies to all variable definitions at namespace scope, i.e. variables with static storage duration [basic.start.static]
compiles to
The text was updated successfully, but these errors were encountered: