[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: More compiler errors (Borland): class Datetime has incorrect operato
From: |
David Sugar |
Subject: |
Re: More compiler errors (Borland): class Datetime has incorrect operator= |
Date: |
Sat, 20 Dec 2003 06:17:52 -0500 |
User-agent: |
KMail/1.5.3 |
I had updated this in sf cvs for 1.1 and found some additional operators which
should also be cast/performed with const...
On Friday 19 December 2003 09:55 am, Andrey Kulikov wrote:
> 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);