On Thursday, January 10, 2013 11:26:38 PM UTC-6, Nephi Immortal wrote:
> template<>
> struct _Type< Type1 >
> {
> void test();
> };
I don't quite catch what you want to do here, but an explicit
specialization in a class scope is not allowed. However, a partial
specialization is OK.
template< Types Type, typename Enable = void>
struct _Type;
template <typename Enable>
struct _Type<Type1, Enable> {
void test();
};
> void Outer< Type1 >::_Type< Type1 >::test()
> {
> }
Syntax error. Should be:
template <> template <>
void Outer< Type1 >::_Type< Type1 >::test()
{
}
--
Zhihao Yuan, ID lichray
The best way to predict the future is to invent it.
__________________________________________________ _
4BSD --
http://4bsd.biz/