Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • 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
Dec 10, 2002
3
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