Boost logo

Boost :

From: Beman Dawes (bdawes_at_[hidden])
Date: 2001-11-09 15:54:56


At 01:20 PM 11/9/2001, Vladimir Prus wrote:

>Beman Dawes wrote:
>> >std::make_pair("a", "b") does not work. call traits allows to write
>> >make_pair version that will work, and even contains such thing as
>> >an example. Shouldn't it go to the tuple library?
>>
>> Be a bit cautious; std::make_pair has changed in a Defect Report to
pass
>by
>> value. See
http://std.dkuug.dk/jtc1/sc22/wg21/docs/lwg-defects.html#181
>>
>> The whole point is to make std::make_pair("a", "b") work.
>
>Thanks for the information. However, there will be a long time before
this
>change will make its way into the standard. Shall we wait?

Well, the Technical Corrigendum which contains that DR was finalized some
time ago. The fix is so simple, I would expect many vendors to include it
in their next release, if they haven't done so already.

--Beman


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