|
Boost : |
Subject: Re: [boost] [filesystem] path noncopyable error with boost 1.55.0 and g++ 4.5.1
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2014-04-09 12:41:48
On Wednesday 09 April 2014 16:56:42 Jonathan Wakely wrote:
> On 9 April 2014 16:23, Richard Hadsell wrote:
> > The compiler is gcc version 4.5.1 20100924 (Red Hat 4.5.1-4).
> >
> > I am compiling with these flags:
> >
> > -march=core2 -msse4.1 -m64 -mpc64 -std=c++0x -pedantic-errors -mieee-fp
> > -fPIC -pthread -O2 -g -fno-strict-aliasing -fno-tree-ccp
>
> C++0x support in GCC 4.5 was ... primitive, at best. It certainly
> wasn't close to the C++11 standard, because there was not C++11
> standard. IMHO you get what you asked for if you try to use a highly
> experimental language mode of an old compiler with a modern version of
> Boost.
FWIW, there is BOOST_NO_CXX11_NON_PUBLIC_DEFAULTED_FUNCTIONS macro in
Boost.Config just for this case. BOOST_DEFAULTED_FUNCTION takes it into
account.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk