[cfe-dev] C++ Constructors & Destructors in the AST

Sebastian Redl sebastian.redl at getdesigned.at
Sun May 3 10:07:10 PDT 2009


On Mon, 27 Apr 2009 14:40:19 -0700, Anders Carlsson <andersca at me.com>
wrote:
> 
> Here's what I've come up with. A FullExprArg right now is a very  
> simple wrapper around ExprArg:
> 

Actually, you've made it a wrapper around ExprArg&. Why?

> 
> I'm not entirely happy with this solution since it sidesteps all the  
> move security we have in the smart pointer classes. Sebastian, do you  
> have a better idea?
> 

Without understanding your motive for wrapping a reference, I cannot say.
But the move security should be preserved if you wrap an object instead.

Sebastian



More information about the cfe-dev mailing list