May 11, 2005 BUG, strange placed new operator | ||||
---|---|---|---|---|
| ||||
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 |
Copyright © 1999-2021 by the D Language Foundation