Skip to content
Snippets Groups Projects
Commit 0127f71e authored by Francois Keith's avatar Francois Keith Committed by Francois Keith
Browse files

Move the definition of some ValueHelper<...>::TypeId to avoid link issues

parent 76542fe5
No related branches found
No related tags found
No related merge requests found
......@@ -114,6 +114,14 @@ namespace dynamicgraph {
static const Value::Type TypeID;
};
template<> const Value::Type ValueHelper<bool>::TypeID = Value::BOOL;
template<> const Value::Type ValueHelper<unsigned>::TypeID = Value::UNSIGNED;
template<> const Value::Type ValueHelper<int>::TypeID = Value::INT;
template<> const Value::Type ValueHelper<float>::TypeID = Value::FLOAT;
template<> const Value::Type ValueHelper<double>::TypeID = Value::DOUBLE;
template<> const Value::Type ValueHelper<std::string>::TypeID = Value::STRING;
template<> const Value::Type ValueHelper<Vector>::TypeID = Value::VECTOR;
template<> const Value::Type ValueHelper<Matrix>::TypeID = Value::MATRIX;
} // namespace command
} //namespace dynamicgraph
......
......@@ -322,16 +322,5 @@ namespace dynamicgraph {
}
return os;
}
/* ---- HELPER ---------------------------------------------------------- */
template<> const Value::Type ValueHelper<bool>::TypeID = Value::BOOL;
template<> const Value::Type ValueHelper<unsigned>::TypeID = Value::UNSIGNED;
template<> const Value::Type ValueHelper<int>::TypeID = Value::INT;
template<> const Value::Type ValueHelper<float>::TypeID = Value::FLOAT;
template<> const Value::Type ValueHelper<double>::TypeID = Value::DOUBLE;
template<> const Value::Type ValueHelper<std::string>::TypeID = Value::STRING;
template<> const Value::Type ValueHelper<Vector>::TypeID = Value::VECTOR;
template<> const Value::Type ValueHelper<Matrix>::TypeID = Value::MATRIX;
} // 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