Ah, I just remembered the identity
meta-function. It is possible to write
operator typename identity::type() const;
with the following definition of identity
:
template
struct identity
{
typedef T type;
};
You could argue that identity
still uses a typedef
, but this solution is "good" enough for me.