This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] Removing const from std::swap


Paolo Carlini <pcarlini@suse.de> writes:

| Gabriel Dos Reis wrote:
| 
| >I'll look at it differently: Does the const buy us anything?  If not,
| >it should be removed.
| >  
| >
| Right, already tested patch below.
| 
| >| If we keep it, auto_ptrs cannot be swapped, as an extension,
| >| indeed...
| >
| >I do not follow here.
| >  
| >
| Well, the thread started with a message about a failed attempt to swap
| auto_ptrs, which are not Assignable, right? Or I'm misunderstanding your
| doubt?

No, you do not -- I just need to do a proper context switch :-)

I guess, the question is whether the proper assumption (concept) for
swap() is Assignbale.  I think no (even though the standard says yes.
Now, I see what you mean.) 

-- Gaby


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]