Project

General

Profile

Bug #4248

Updated by Davide Pesavento about 7 years ago

Currently, the `wireEncode(EncodingImpl<T>&)` function templates are forward declared `wireEncode` template functions appear in header files, but their definitions, along with two explicit instantiations, `.cpp` and specializations only appear in the `.cpp` files only. 

 `.hpp`. Such code is illegal unless every use of the function template that would trigger an implicit instantiation is preceded by an explicit instantiation declaration (`extern template`). not portable. 
 The specializations should appear in `.hpp`.

Back