|
Boost Users : |
Subject: Re: [Boost-users] [move] Movable but not copyable bug?
From: Mostafa (mostafa_working_away_at_[hidden])
Date: 2014-08-24 00:11:49
On Sat, 23 Aug 2014 17:55:06 -0700, Mostafa
<mostafa_working_away_at_[hidden]> wrote:
> Given the following code, if (1) is uncommented then it fails to compile
> under C++03 mode yet works in C++11 mode. If commented out, then it
> compiles successfully under both modes. (g++ 4.8.2 is being used) Is this
> behavior expected or a bug?
FWIW, both scenarios compile in VS2005. It seems gcc is unnecessarily
instantiating (in function f2) the copy ctor for Bar<Foo> whenever that
ctor is explicitly defined. Is this a gcc bug?
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net