Modified fix for sergiud, for warning-less compilation on MSVC12.0 at level 4

in release mode.
Fixes #2
This commit is contained in:
Ronald Garcia 2014-08-15 09:54:17 -07:00
parent 013ed850c5
commit 83493ba231

View File

@ -463,6 +463,7 @@ protected:
index bound_adjustment = stride < 0 ? 1 : 0;
BOOST_ASSERT(((index_bases[n] - bound_adjustment) <= finish) &&
(finish <= (index_bases[n] + index(extents[n]) - bound_adjustment)));
ignore_unused_variable_warning(bound_adjustment);
#endif // BOOST_DISABLE_ASSERTS