make accessor writeable

This commit is contained in:
Hans Dembinski
2019-01-06 16:10:10 +01:00
parent dc9437044b
commit 347ac33d2c
2 changed files with 41 additions and 39 deletions

View File

@@ -57,6 +57,11 @@ void run_1d_tests(mp_list<IsDynamic, IncludeExtraBins>) {
++it;
}
BOOST_TEST(it == ind.end());
for (auto&& x : indexed(h, IncludeExtraBins())) *x = 0;
for (auto&& x : indexed(static_cast<const decltype(h)&>(h), IncludeExtraBins()))
BOOST_TEST_EQ(*x, 0);
}
template <class IsDynamic, class IncludeExtraBins>