Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7652: compile-time checked access
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-12-18 18:01:02
#7652: compile-time checked access
-------------------------------+--------------------------------------------
Reporter: tobias.loew | Owner: marshall
Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: array
Version: Boost 1.52.0 | Severity: Optimization
Resolution: | Keywords:
-------------------------------+--------------------------------------------
Comment (by marshall):
In [82083], I added support for `std::get<>` to Boost.Array, so you can
write
{{{
boost::array<int, 2> arr;
std::get<2>(arr) = -1;
}}}
and get a compile-time error.
Right now, it's only turned on for C++11, but I might be able to make it
work for C++03 systems.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7652#comment:2> 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