The following code compiles here in strict mode
http://www.comeaucomputing.com/tryitout/
but it does not compile using MS Visual Studio 6.0.
Can anyone offer an explanation?
class Simple
{
public:
template<class T> explicit Simple(T t){}
Simple(const Simple &orig){}
Simple(){}
};
int main()
{
const Simple simpleOne(Simple(1));
return 0;
}
error C2558: class 'Simple' : no copy constructor available