Subject: [Boost-bugs] [Boost C++ Libraries] #7651: static index check for adapted boost::array
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-11-06 06:50:11
#7651: static index check for adapted boost::array
------------------------------+---------------------------------------------
Reporter: tobias.loew | Owner: djowel
Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: fusion
Version: Boost 1.52.0 | Severity: Optimization
Keywords: |
------------------------------+---------------------------------------------
To prevent code like
boost::array<int,2> test;
boost::fusion::at_c<3>(test) = 0;
from compiling correctly I suggest to add a static assert
"(size_t)N::value < (size_t)Sequence::static_size" to
boost::fusion::extension::at_impl<boost_array_tag>::apply<Sequence,N>::call
in file boost/fusion/adapted/boost_array/detail/at_impl.hpp
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7651> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:11 UTC