Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 29, 2015, 5:16:28 PM (9 years ago)
Author:
landauf
Message:

for all non-copyable classes (i.e. those with deleted copy-constructor) I added also a deleted assignment operator

Location:
code/branches/cpp11_v2/src/libraries/core/class
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v2/src/libraries/core/class/Identifier.h

    r10990 r10992  
    118118        public:
    119119            Identifier(const std::string& name, Factory* factory, bool bLoadable);
     120            virtual ~Identifier();
     121
     122            // non-copyable:
    120123            Identifier(const Identifier&) = delete;
    121             virtual ~Identifier();
     124            Identifier& operator=(const Identifier&) = delete;
    122125
    123126            /// Returns the name of the class the Identifier belongs to.
     
    302305
    303306        private:
     307            // non-copyable:
    304308            ClassIdentifier(const ClassIdentifier<T>&) = delete;
     309            ClassIdentifier& operator=(const ClassIdentifier<T>&) = delete;
    305310
    306311            void setConfigValues(T* object, Configurable*) const;
  • code/branches/cpp11_v2/src/libraries/core/class/IdentifierManager.h

    r10990 r10992  
    9595
    9696        private:
     97            // non-copyable:
    9798            IdentifierManager(const IdentifierManager&) = delete;
     99            IdentifierManager& operator=(const IdentifierManager&) = delete;
    98100
    99101            /// Increases the hierarchyCreatingCounter_s variable, causing all new objects to store their parents.
Note: See TracChangeset for help on using the changeset viewer.