<div>C++ standard (MSVC included) do support template specializations while it doesn't support extern template specializations. So the following define is wrong to me.</div>
<div>#ifdef __GNUC__<br>#define EXTERN_TEMPLATE_INSTANTIATION(X) __extension__ extern template X<br>#define TEMPLATE_INSTANTIATION(X) template X</div>
<div>#else<br>#define EXTERN_TEMPLATE_INSTANTIATION(X)</div>
<div>#define TEMPLATE_INSTANTIATION(X)   <======== wrong, C++ supports this.<br>#endif<br></div>
<div>Please verify.<br clear="all"></div>
<div></div><br>-- <br>-Howard<br>