diff --git a/bindings/CXX11/adios2/cxx11/Engine.h b/bindings/CXX11/adios2/cxx11/Engine.h index 654c4be0f3..95219ee3a7 100644 --- a/bindings/CXX11/adios2/cxx11/Engine.h +++ b/bindings/CXX11/adios2/cxx11/Engine.h @@ -458,48 +458,6 @@ class Engine core::Engine *m_Engine = nullptr; }; -#define declare_template_instantiation(T) \ - \ - extern template typename Variable::Span Engine::Put( \ - Variable, const bool, const T &); \ - extern template typename Variable::Span Engine::Put(Variable); \ - extern template void Engine::Get(Variable, T **) const; - -ADIOS2_FOREACH_PRIMITIVE_TYPE_1ARG(declare_template_instantiation) -#undef declare_template_instantiation - -#define declare_template_instantiation(T) \ - extern template void Engine::Put(Variable, const T *, const Mode); \ - extern template void Engine::Put(const std::string &, const T *, \ - const Mode); \ - extern template void Engine::Put(Variable, const T &, const Mode); \ - extern template void Engine::Put(const std::string &, const T &, \ - const Mode); \ - \ - extern template void Engine::Get(Variable, T *, const Mode); \ - extern template void Engine::Get(const std::string &, T *, const Mode); \ - extern template void Engine::Get(Variable, T &, const Mode); \ - extern template void Engine::Get(const std::string &, T &, const Mode); \ - \ - extern template void Engine::Get(Variable, std::vector &, \ - const Mode); \ - extern template void Engine::Get(const std::string &, std::vector &, \ - const Mode); \ - \ - extern template void Engine::Get( \ - Variable, typename Variable::Info & info, const Mode); \ - extern template void Engine::Get( \ - const std::string &, typename Variable::Info &info, const Mode); \ - \ - extern template std::map::Info>> \ - Engine::AllStepsBlocksInfo(const Variable variable) const; \ - \ - extern template std::vector::Info> \ - Engine::BlocksInfo(const Variable variable, const size_t step) const; - -ADIOS2_FOREACH_TYPE_1ARG(declare_template_instantiation) -#undef declare_template_instantiation - std::string ToString(const Engine &engine); } // end namespace adios2 diff --git a/bindings/CXX11/adios2/cxx11/Group.h b/bindings/CXX11/adios2/cxx11/Group.h index fa07e8546c..d1892f1cd5 100644 --- a/bindings/CXX11/adios2/cxx11/Group.h +++ b/bindings/CXX11/adios2/cxx11/Group.h @@ -135,11 +135,5 @@ class Group */ DataType AttributeType(const std::string &name) const; }; -// Explicit declaration of the public template methods -// Limits the types -#define declare_template_instantiation(T) \ - extern template Variable Group::InquireVariable(const std::string &); -ADIOS2_FOREACH_TYPE_1ARG(declare_template_instantiation) -#undef declare_template_instantiation } #endif // ADIOS2_BINDINGS_CXX11_CXX11_GROUP_H_ diff --git a/bindings/CXX11/adios2/cxx11/IO.h b/bindings/CXX11/adios2/cxx11/IO.h index af303de1d2..56b0c36be7 100644 --- a/bindings/CXX11/adios2/cxx11/IO.h +++ b/bindings/CXX11/adios2/cxx11/IO.h @@ -364,32 +364,6 @@ class IO core::IO *m_IO = nullptr; }; -// Explicit declaration of the public template methods -// Limits the types -#define declare_template_instantiation(T) \ - extern template Variable IO::DefineVariable(const std::string &, \ - const Dims &, const Dims &, \ - const Dims &, const bool); \ - \ - extern template Variable IO::InquireVariable(const std::string &); - -ADIOS2_FOREACH_TYPE_1ARG(declare_template_instantiation) -#undef declare_template_instantiation - -#define declare_template_instantiation(T) \ - extern template Attribute IO::DefineAttribute( \ - const std::string &, const T *, const size_t, const std::string &, \ - const std::string, const bool); \ - \ - extern template Attribute IO::DefineAttribute( \ - const std::string &, const T &, const std::string &, \ - const std::string, const bool); \ - \ - extern template Attribute IO::InquireAttribute( \ - const std::string &, const std::string &, const std::string); -ADIOS2_FOREACH_ATTRIBUTE_TYPE_1ARG(declare_template_instantiation) -#undef declare_template_instantiation - std::string ToString(const IO &io); } // end namespace adios2 diff --git a/bindings/CXX11/adios2/cxx11/Types.h b/bindings/CXX11/adios2/cxx11/Types.h index fb8278bc91..6048efe9d2 100644 --- a/bindings/CXX11/adios2/cxx11/Types.h +++ b/bindings/CXX11/adios2/cxx11/Types.h @@ -22,13 +22,5 @@ namespace adios2 template std::string GetType() noexcept; -// LIMIT TEMPLATE TYPES FOR adios2::GetType -#define declare_template_instantiation(T) \ - \ - extern template std::string GetType() noexcept; - -ADIOS2_FOREACH_TYPE_1ARG(declare_template_instantiation) -#undef declare_template_instantiation - } // end namespace adios2 #endif /* ADIOS2_BINDINGS_CXX11_TYPES_H_ */ diff --git a/bindings/CXX11/adios2/cxx11/Variable.h b/bindings/CXX11/adios2/cxx11/Variable.h index 9cce77c776..92b606ee08 100644 --- a/bindings/CXX11/adios2/cxx11/Variable.h +++ b/bindings/CXX11/adios2/cxx11/Variable.h @@ -397,12 +397,6 @@ class Variable DoAllStepsBlocksInfoMap() const; }; -#define declare_template_instantiation(T) \ - extern template std::vector::Info> \ - Variable::ToBlocksInfoMin(const MinVarInfo *coreVarInfo) const; -ADIOS2_FOREACH_TYPE_1ARG(declare_template_instantiation) -#undef declare_template_instantiation - template std::string ToString(const Variable &variable);