Boost logo

Boost :

Subject: Re: [boost] std::tuple vs boost::tuple clashes in C++0x
From: Christopher Jefferson (chris_at_[hidden])
Date: 2011-04-05 11:53:41


On 5 Apr 2011, at 16:29, Olaf van der Spek wrote:

> On Tue, Apr 5, 2011 at 5:16 PM, Christopher Jefferson
> <chris_at_[hidden]> wrote:
>> There are lots of names which in C++0x occur in both boost:: and std::. The big ones are tuple, make_tuple and array, but there are others (for example locking functions from thread).
>
> Just wondering, shouldn't boost::array just map to std::array if the
> latter is available?

The two aren't entirely compatible, although they are close (boost::array has assign, static_size). Probably the major thing is that boost has a much more relaxed operator=. Also "map to" is tricky to do in C++ effectively.

Chris


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk