[Bug c++/44548] Link error when defining templated static const variable

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Jun 15 19:01:00 GMT 2010



------- Comment #1 from pinskia at gcc dot gnu dot org  2010-06-15 19:00 -------
No you just specialized the declaration.
You want:
template<class T>
const T MyTraits<T>::kValue; // define it.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44548



More information about the Gcc-bugs mailing list