c++.beta - BUG, strange placed new operator
- nyra sohu.com (25/25) May 11 2005 compiling with dmc 8.43
compiling with dmc 8.43 template <class T> class DeepCopyOption { public: friend T *DeepCopyNew(const T& src) { return ::new T(src, 0); } }; class Vector : DeepCopyOption< Vector > { public: Vector() { } Vector(Vector const& other, int) { } }; int main() { Vector a; return 0; } ---------- Digital mars C++ ---------- BugNew.cpp(5) : Error: vectors cannot have initializers --- errorlevel 1
May 11 2005