Make explicit template instantiation definition a declaration in filter.h

This commit is contained in:
Paul Romano 2018-11-15 13:04:35 -06:00
parent 1fe775574e
commit d624265ef8
2 changed files with 3 additions and 1 deletions

View file

@ -29,7 +29,7 @@ public:
// Without an explicit instantiation of vector<FilterMatch>, the Intel compiler
// will complain about the threadprivate directive on filter_matches. Note that
// this has to happen *outside* of the openmc namespace
template class std::vector<openmc::FilterMatch>;
extern template class std::vector<openmc::FilterMatch>;
namespace openmc {

View file

@ -26,6 +26,8 @@
#include "openmc/tallies/filter_universe.h"
#include "openmc/tallies/filter_zernike.h"
// explicit template instantiation definition
template class std::vector<openmc::FilterMatch>;
namespace openmc {