[cfe-dev] Where to implement __is_convertible_to?
Sebastian Redl
sebastian.redl at getdesigned.at
Mon Sep 6 22:10:04 PDT 2010
On Sep 6, 2010, at 8:28 PM, Steven Watanabe wrote:
> AMDG
>
> VC++ has an intrinsic __is_convertible_to. I've started
> implementing it, but here's the problem: The existing
> type traits are implemented in ExprCXX.cpp, and are
> passed an ASTContext only. However, the only way that
> I see to implement this trait (using InitializationSequence)
> requires a Sema which is not available in the places where
> EvaluateTrait is called from. Any ideas?
Only place I can see where this is possible is when creating the AST node.
Sebastian
More information about the cfe-dev
mailing list