Opened 10 years ago
Closed 8 years ago
#7651 closed Feature Requests (fixed)
static index check for adapted boost::array
Reported by: | Tobias Loew | Owned by: | Joel de Guzman |
---|---|---|---|
Milestone: | To Be Determined | Component: | fusion |
Version: | Boost 1.52.0 | Severity: | Optimization |
Keywords: | Cc: |
Description
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
Attachments (1)
Change History (3)
by , 10 years ago
Attachment: | at_impl.hpp.patch added |
---|
comment:1 by , 10 years ago
comment:2 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
I appended a patch for the issue.