________________________________________ From: Boost [boost-bounces@lists.boost.org] on behalf of Pietro Incardona via Boost [boost@lists.boost.org]
Sent: 16 April 2018 21:22 To: boost@lists.boost.org Cc: Pietro Incardona Subject: [boost] Bug or change behavior in Fusion at_c in boost 1.66 and 1.67
Dear boost developers
I used to use boost vector container with arrays like in the code below
<code deleted>
Compiled with
g++ --std=c++11 -I/home/i-bird/BOOST_166/include -o out main.cpp
Unfortunately while this code was working under BOOST 1.63, on Boost 1.66 and Boost 1.67 it does not compile > and it produce this error below. It seem that include/boost/fusion/container/vector/detail/value_at_impl.hpp went > under some "modernization" process that broke the code above
Regards Pietro
Pietro You do not say which version of g++ you are using. I have tried this code with various compilers with Boost 1.66 and C++11 and -O2 optimization With Clang 4.0 and 6.0 it compiles. With gcc 7.2 and 5.2 it fails, although they compile with Boost 1.64. I don't have an explanation for this, I offer it as a clue. John Fletcher