Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Inner specialization

Status
Not open for further replies.

zolee69

Computer
Joined
Dec 10, 2002
Messages
3
Location
SE
Hi all!

I'm trying to make an inner template specialization. My MSVC 7.0 compiler doesn't really like it, ends with an internal error.
I'd like to ask you if this is a legal declaration.
Code:
template <typename T> struct D;

template <typename T> struct R
{
    struct A
    {
        T m;
    };
    template<> struct D<A>
    {
    };
    D<A> v;

};
If not, can somebody help me with a workaround tip?
Thanks!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top