Skip to content
Snippets Groups Projects
Commit ec6c7260 authored by Cédric Traizet's avatar Cédric Traizet
Browse files

Revert "BUG: remove assert on field type/requested type"

This reverts commit 450b514d.
parent 450b514d
No related branches found
No related tags found
No related merge requests found
......@@ -451,6 +451,7 @@ 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.
......
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