I'm experimenting with template-template for fun. I have the following class:
template<template<class> class T, typename R> class Unit
{
using FullType = T<R>;
using Ratio = R;
//using Type = T;
...
};
I have define type R
and T<R>
as member-types Ratio
and FullType
.
Is it possible to alias T
as Type
?
The commented line above give me the following errors on g++ 4.7:
expected nested-name-specifier before 'Type'
using-declaration for non-member at class scope
expected ';' before '=' token
expected unqualified-id before '=' token
I tried some more or less random syntaxes, but none of them compiled.
Thanks !