Subject: Re: [boost] [smart_ptr] extra colon on make_shared variadic template instantiation
From: Jonathan Wakely (jwakely.boost_at_[hidden])
Date: 2013-09-19 10:22:39
On 19 September 2013 08:53, Peter Dimov wrote:
> The reason that there are two overloads, one without arguments, the other
> with Arg1&& and Args&&..., is that earlier versions of g++ treated new
> T(args...) as new T when args... is empty, instead of the correct new T().
> There is a test that checks for this bug. If the current crop of supported
> compilers no longer suffers from it, the two overloads can be replaced by
> the simple variadic Args... version.
FWIW that should be fixed in G++ 4.3.0 onwards:
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk