Re: auto_ptr gcc version 3.3.1 (cygming special) problem

2004-01-07 Thread Rolf Campbell
#1) This is not a cygwin issue, so it's off-topic here. #2) This is not even really a gcc issue, it's a C++ issue. #3) The problem is that you are trying to use static_cast too much. It should only be used for built-in types (int, float, various pointers). The older gcc seemed to allow incorr

auto_ptr gcc version 3.3.1 (cygming special) problem

2004-01-07 Thread Marcelo Rezende Módolo
Hi, I am not shure that this is a error , but it is very strange... //autoPtr.cpp #include #include using namespace std; class B { public: B(int cid) : cid_(cid) { cout << "B(" << cid_ << ")\n"; } ~B() { cout << "~B(" << cid_ << ")\n"; } private: int cid_; }; class A { publi