[cfe-dev] Parser Stmt/Expr Owning Pointer

Douglas Gregor dgregor at apple.com
Tue Dec 9 09:37:10 PST 2008


On Dec 8, 2008, at 6:04 PM, Chris Lattner wrote:
> On Dec 8, 2008, at 3:42 PM, Sebastian Redl wrote:
>> I personally don't find move() strange at all, but then I've been
>> preoccupied with move semantics and their emulation since I learned
>> of the concept two years ago. (Note: with proper C++0x moving,
>> there'll be no need to call move() anymore. However, due to the
>> reference binding rules of C++03, the only way to achieve this is to
>> allow the highly unsafe practice of moving from const references.)
>
> Yep yep, rvalue refs are very nice.  Unfortunately we probably can't
> actually *use* them in llvm/clang until they are widely deployed in
> vendor compilers.  :(  It sucks to have to write portable code.
>
> What do other people think about this name?

I'm all for using "move". It's the right name for the semantics of  
this smart pointer.

> Overall, I really like the patch.  This is great work, please feel
> free to commit it and if others think "move" should be renamed, it can
> be done as a follow-on.


Yes, this is great work. Thanks, Sebastian!

	- Doug



More information about the cfe-dev mailing list