Sign in to follow this  
Nikita21

Syntax error - extern template

Recommended Posts

Probebly not very bright question, but how do i include template structures within others? for exemple
template<class T>
struct A
{
typedef A<T>m_A
typedef B<T>m_B
}

template<class T>
struct B
{
A<T>*B
}


My compiler (the default VC++ 2008 compiler), recognise it as an error, since B doesn't exist when it`s first compile A, is there a way to make a prototype for it or make it external? i know the right syntax without template...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this