Skip to content
Snippets Groups Projects
Commit d927d1a3 authored by Luc Hermitte's avatar Luc Hermitte
Browse files

COM: OTB-134/OGR -> (*layer.begin())[0].GetValue<int>() now works

parent 14441e43
No related branches found
No related tags found
No related merge requests found
......@@ -300,8 +300,8 @@ public:
Value & dereference() const
{ return m_Crt; }
otb::ogr::Layer * m_Layer;
otb::ogr::Feature m_Crt;
otb::ogr::Layer * m_Layer;
otb::ogr::Feature mutable m_Crt;
};
template <class> friend class feature_iter;
......
......@@ -227,6 +227,8 @@ BOOST_AUTO_TEST_CASE(Add_n_Read_Fields)
f0.SetValue(42);
BOOST_ASSERT(f0.HasBeenSet());
BOOST_CHECK_EQUAL(f0.GetValue<int>(), 42);
BOOST_CHECK_EQUAL(g0[0].GetValue<int>(), 42);
BOOST_CHECK_EQUAL((*l.begin())[0].GetValue<int>(), 42);
// BOOST_CHECK_assert_FAILS(f0.GetValue<double>(), itk::ExceptionObject);
ogr::Field f1 = g0["OFTReal"];
......
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