Skip to content
Snippets Groups Projects
Commit 5721ccb9 authored by Francois Keith's avatar Francois Keith Committed by unknown
Browse files

[Win32] Remove template specialization declaratn, export symbols.

parent efe8b0a6
No related branches found
No related tags found
No related merge requests found
......@@ -109,21 +109,14 @@ namespace dynamicgraph {
};
/* ---- HELPER ---------------------------------------------------------- */
// Note: to ensure the WIN32 compatibility, it is necessary to export
// the template specialization. Also, it is forbidden to do the template
// specialization declaration in the header file, for the same reason.
template< typename T >
struct ValueHelper
struct DYNAMIC_GRAPH_DLLAPI ValueHelper
{
static const Value::Type TypeID;
};
template<> const Value::Type ValueHelper<bool>::TypeID;
template<> const Value::Type ValueHelper<unsigned>::TypeID;
template<> const Value::Type ValueHelper<int>::TypeID;
template<> const Value::Type ValueHelper<float>::TypeID;
template<> const Value::Type ValueHelper<double>::TypeID;
template<> const Value::Type ValueHelper<std::string>::TypeID;
template<> const Value::Type ValueHelper<Vector>::TypeID;
template<> const Value::Type ValueHelper<Matrix>::TypeID;
} // namespace command
} //namespace dynamicgraph
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment