Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

template problem

Name: Anonymous 2006-06-20 8:39

Does anyone know how to make the following code work?

#include <iostream>
using namespace std;

template<typename T>
class A
{public:
    class B
    {
    };
};
template<typename T>
ostream& operator << ( ostream&, typename A<T>::B const& )
{
}
int main()
{
    A<int>::B b;
    cout <<   b;
    return 0;
}

Name: Anonymous 2010-10-09 16:06

>>15
The trick is to use a manageable subset and accept that it's going to suck compared to reasonable alternatives.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List