File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -109,21 +109,14 @@ namespace dynamicgraph {
109
109
};
110
110
111
111
/* ---- HELPER ---------------------------------------------------------- */
112
+ // Note: to ensure the WIN32 compatibility, it is necessary to export
113
+ // the template specialization. Also, it is forbidden to do the template
114
+ // specialization declaration in the header file, for the same reason.
112
115
template < typename T >
113
- struct ValueHelper
116
+ struct DYNAMIC_GRAPH_DLLAPI ValueHelper
114
117
{
115
118
static const Value::Type TypeID;
116
119
};
117
-
118
- template <> const Value::Type ValueHelper<bool >::TypeID;
119
- template <> const Value::Type ValueHelper<unsigned >::TypeID;
120
- template <> const Value::Type ValueHelper<int >::TypeID;
121
- template <> const Value::Type ValueHelper<float >::TypeID;
122
- template <> const Value::Type ValueHelper<double >::TypeID;
123
- template <> const Value::Type ValueHelper<std::string>::TypeID;
124
- template <> const Value::Type ValueHelper<Vector>::TypeID;
125
- template <> const Value::Type ValueHelper<Matrix>::TypeID;
126
-
127
120
} // namespace command
128
121
} // namespace dynamicgraph
129
122
You can’t perform that action at this time.
0 commit comments