-
Key: CPP1115-5
-
Status: closed
-
Source: Remedy IT ( Johnny Willemsen)
-
Summary:
ValueBase has only a protected copy/move copy constructor to allow a derived class to make a copy, the assignment operators are deleted, because of this also for a valuebox the assignment operators should be deleted, so the 3rd bullet should be updated from
Protected copy and move assignment operators
to
Private deleted copy and move assignment operators
And in the code example
ColorValue& operator=(const ColorValue&);
ColorValue& operator=(ColorValue&&);to
ColorValue& operator=(const ColorValue&) = delete;
ColorValue& operator=(ColorValue&&) = delete; -
Reported: CPP11 1.4 — Mon, 28 Sep 2020 14:06 GMT
-
Disposition: Resolved — CPP11 1.5
-
Disposition Summary:
Value box classes shouldn't be assignable
Update to work with ValueBase
-
Updated: Mon, 29 Mar 2021 12:21 GMT
CPP1115 — Copy/move assignment operators should be deleted
- Key: CPP1115-5
- OMG Task Force: IDL to C++11 1.5 RTF