Subject: [Boost-bugs] [Boost C++ Libraries] #6729: boost::multi_array 1.49.0 does not compile with gcc 4.5.2
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-03-23 23:33:45
#6729: boost::multi_array 1.49.0 does not compile with gcc 4.5.2
---------------------------------------+------------------------------------
Reporter: janitor048@⦠| Owner: garcia
Type: Bugs | Status: new
Milestone: To Be Determined | Component: multi_array
Version: Boost 1.49.0 | Severity: Regression
Keywords: |
---------------------------------------+------------------------------------
Programs including boost::multi_array do not compile with gcc 4.5.2. This
can be reproduced by simply trying to include {{{boost/multi_array.hpp}}}.
Minimal example:
{{{
#!cpp
#include <boost/multi_array.hpp>
int main()
{
return 0;
}
}}}
This produces a lot of compiler errors such as
{{{
In file included from
/home/janitor/usr/include/boost/type_traits/has_bit_and.hpp:43:0,
from
/home/janitor/usr/include/boost/type_traits/has_operator.hpp:12,
from /home/janitor/usr/include/boost/type_traits.hpp:35,
from /home/janitor/usr/include/boost/multi_array.hpp:30,
from
/home/janitor/cascade/testing/binningClass/src/main.cpp:4:
/home/janitor/usr/include/boost/type_traits/detail/has_binary_operator.hpp:221:29:
error: expected constructor, destructor, or type conversion before â(â
token
}}}
gcc version is 4.5.2: gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2[[br]]
System information: x86_64 GNU/Linux (2.6.38-13-generic)
Using boost 1.42 the problem does not exist. Also the same code compiles
with boost 1.49.0 and gcc 4.4.4
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6729> 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:09 UTC