[cfe-commits] const_cast fun

Daniel Dunbar daniel at zuster.org
Thu Aug 6 19:27:17 PDT 2009


Better, IMHO. I am pro lifting const to ASTContext where appropriate,
pushing const_cast into ASTContext as necessary, and eventually
marking the appropriate fields mutable and dropping const_cast.

 - Daniel

On Thu, Aug 6, 2009 at 6:57 PM, Mike Stump<mrs at apple.com> wrote:
> So, I think this is a step in the right direction, but I tried detangling
> const stemming from this and had nothing but an endless parade of errors.
>  When I noticed even lowly QualType did a const_cast, I kinda realized const
> is just a vague concept in clang.
>
> $ grep 'const_cast<' lib/*/*.cpp | wc -l
>     111
>
> :-(  So, what do others think?  Better, or worse?
>
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>




More information about the cfe-commits mailing list