Semantics Decltype
the reason difference between latter 2 invocations of decltype parenthesized expression (a->x) neither id-expression nor member access expression, , therefore not denote named object. because expression lvalue, deduced type reference type of expression , or const double&.
in december 2008, concern raised committee jaakko järvi on inability use decltype form qualified-id, inconsistent intent decltype(e) should treated if typedef-name . while commenting on formal committee draft c++0x, japanese iso member body noted scope operator(::) cannot applied decltype, should be. useful in case obtain member type(nested-type) instance follows :
this, , similar issues pertaining wording inhibiting use of decltype in declaration of derived class , in destructor call, addressed david vandevoorde, , voted working paper in march 2010.
Comments
Post a Comment