Subject: [Boost-bugs] [Boost C++ Libraries] #11787: fusion for_each turns array reference const on msvc
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-11-08 08:17:14
#11787: fusion for_each turns array reference const on msvc
-------------------------------------+---------------------
Reporter: imer@⦠| Owner: djowel
Type: Bugs | Status: new
Milestone: To Be Determined | Component: fusion
Version: Boost Development Trunk | Severity: Problem
Keywords: fusion array const |
-------------------------------------+---------------------
On MSVC 2013 (I have not tested any other versions) arrays are always
const references, instead of non-const ones.
Thus code that needs to modify the array and doesn't have a const overload
fails to compile.
I don't know if the issue concerns other parts than for_each
A simple test case is attached
Expected output (as seen when using gcc/clang):
{{{
Int
Char [10]
}}}
Output using msvc 2013:
{{{
Int
Const Char[10]
}}}
I have tested it against boost 1.59 and a fresh git clone.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11787> 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:19 UTC