I have a class A
template
class A : public std::auto_ptr
{
typedef std::auto_ptr Super;
public:
A() : Super() { }
Without the exact code that actually causes the error it's hard to know for sure, but I suspect that from AIR::A
what happening is you're trying to pass a temporary (possibly implicit) object into AIR::A
and MSVC lets you bind the temporary to the non-const reference parameter, while g++ quite properly prohibits this. Can you make the parameter const
?