------- Additional Comments From owen at titan dot com 2005-07-28 18:47 ------- >From Wolfgang Bangerth:
You need to write: template <> std::map<char*,char*> MyType<Sample>::m_map = std::map<char*,char*>(); My problem with this is that it requires that the static member support the copy constructor. In my case, the static member is something that cannot be copied, so I put an explicit copy constructor into the private section of my template class, which makes the above statement generate an error that the copy constructor is private. How do I instantiate this static member? It's default constructor does all the initialization I want, and I don't want that initialization done twice. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17445