Skip to content

Instantly share code, notes, and snippets.

@wildmichael
Created July 7, 2010 13:32
Show Gist options
  • Save wildmichael/466687 to your computer and use it in GitHub Desktop.
Save wildmichael/466687 to your computer and use it in GitHub Desktop.
namespace A {
template<typename T>
class B {
T t;
static const char* name;
};
#ifdef WITH_DECLARATION
template<> const char* B<int>::name;
#endif
}
template<>
const char* ::A::B<int>::name = "Charly Parker";
int main() {return 0;}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment