Commit 450b514d authored by Cédric Traizet's avatar Cédric Traizet

BUG: remove assert on field type/requested type

parent 7b09c7e4
Pipeline #1746 passed with stages
in 43 minutes and 58 seconds
......@@ -451,7 +451,6 @@ T otb::ogr::Field::GetValue() const
typedef typename boost::mpl::at<internal::FieldType_Map, T>::type Kind;
//const int VALUE = Kind::value;
BOOST_STATIC_ASSERT(!(boost::is_same<Kind, boost::mpl::void_>::value));
assert(m_Definition.GetType() == Kind::value && "OGR field type mismatches the type of requested field value");
typedef typename boost::mpl::at<internal::FieldGetters_Map, Kind>::type GetterType;
// If you experience a static assertion failure in the line below, it means
// the field cannot be extracted into the type requested.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment