[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
More compiler errors (Borland): class Datetime has incorrect operator=
From: |
Andrey Kulikov |
Subject: |
More compiler errors (Borland): class Datetime has incorrect operator= |
Date: |
Fri, 19 Dec 2003 17:55:42 +0300 |
Hi!
Enviroment: Borland C++ Builder 6.0 Update 4
It's imposible now to add Datetime object to STL containers.
(Under Visual Studio 2003 everething is ok,
but with borland's STL - no)
For example:
vector<ost::Datetime> rr;
ost::Datetime dt;
rr.push_back(dt); // Error here
Now operator=() declared as:
Datetime& operator=(Datetime datetime);
Solution:
declare operator=() as:
Datetime& operator=(const Datetime& datetime);
--
Best regards,
Andrey mailto:address@hidden