[cfe-dev] [PATCH] Add APValue::swap

Howard Hinnant hhinnant at apple.com
Thu Mar 8 10:45:00 PST 2012


On Mar 8, 2012, at 1:39 PM, Daniel Dunbar wrote:

> I wanted to make the copy assignment operator private to encourage
> callers to see if they could use swap instead.
> 
> My motivation here seems confused though, per subsequent discussion.

I think you're just ahead of your time.  Sounds like you're trying to encourage C++11 move assignment. :-) (which I think would be a very good idea, but requires commitment to using C++11)

Howard




More information about the cfe-dev mailing list