Boost logo

Boost :

Subject: Re: [boost] [container] container_detail::pair piecewise constructor
From: László Szécsi (szecsi_at_[hidden])
Date: 2012-11-15 04:47:31

I did some more research and it turns out std-style piecewise
construction fails with VS2012 Nov CTP compiler, just like my attempt
at adding piecewise construction to boost::container_detail::pair. In
particular, the following dummy code compiles under g++ 4.7.1 but not
under VS2012 Nov CTP.

class Foo {
        template <class... Args1, class... Args2>
        Foo( const ::std::piecewise_construct_t,
                 ::std::tuple<Args1...> first_args,
                 ::std::tuple<Args2...> second_args)
        { }

int main(){
        Foo s(
                std::move( std::make_tuple(30) ),
                std::move( std::make_tuple(50) ));

I guess the time is not ripe for the container implementation to use
true variadic templates yet.

Is there ongoing effort to implement container_detail::pair's
piecewise constructor in the same way as it was implemented in

Best regards,
Laszlo Szecsi

Boost list run by bdawes at, gregod at, cpdaniel at, john at