[cfe-dev] noexcept and local variables
Howard Hinnant
hhinnant at apple.com
Wed Jun 1 05:06:45 PDT 2011
On Jun 1, 2011, at 7:21 AM, Marc Glisse wrote:
> On Sat, 28 May 2011, Howard Hinnant wrote:
>
>>> On Fri, 27 May 2011, Howard Hinnant wrote:
>>>
>>>> I've created __is_swappable<T> and __is_nothrow_swappable<T> to put into the noexcepts everywhere I need to.
>>
>> I'll be checking in a fix shortly
>
> Hello,
>
> don't you need to also constrain the other swap overloads (say swap(pair,pair) should only exist when the elements are swappable, etc)?
>
> Although it sounds like the latest fix from Sean Hunt makes the whole swappable trait thing unnecessary.
<nod> I have yet to come up to speed in this new language. :-) Your question is a good one, and I don't know the answer yet.
Howard
More information about the cfe-dev
mailing list