Skip to main content
ixache's user avatar
ixache's user avatar
ixache's user avatar
ixache
  • Member for 11 years, 3 months
  • Last seen more than 11 years ago
comment
Why the static data members have to be defined outside the class separately in C++ (unlike Java)?
@Giorgio: the reference to Java may not be welcome, but I think that Emilio's answer is mostly right by getting to the gist of the issue, namely the object file/linker phase after separate compilation.
awarded
comment
Why the static data members have to be defined outside the class separately in C++ (unlike Java)?
@Klaim/C++ compilation model: I think than Emilio's answer is trying (and succeeding in parts) to precisely explain the C++ compilation model, even it could (still) be improved.