R
red floyd
What is the linkage of a namespace scope typedef? Is it internal or
external?
3.5 is unclear on this.
In other words, is the following program, consisting of translation
units a.cpp and b.cpp, well formed?
a.cpp
// file a.cpp
typedef int MyType;
MyType x = 0;
b.cpp:
// file b.cpp
typedef double MyType;
MyType y = 0.0;
int main() { }
external?
3.5 is unclear on this.
In other words, is the following program, consisting of translation
units a.cpp and b.cpp, well formed?
a.cpp
// file a.cpp
typedef int MyType;
MyType x = 0;
b.cpp:
// file b.cpp
typedef double MyType;
MyType y = 0.0;
int main() { }