Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 29, 2015, 4:47:42 PM (9 years ago)
Author:
landauf
Message:

use '= delete' to explicitly delete unimplemented copy-constructors (for non-copyable classes).
use '= default' to explicitly implement default constructors/destructors.

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

    r10920 r10990  
    118118        public:
    119119            Identifier(const std::string& name, Factory* factory, bool bLoadable);
    120             Identifier(const Identifier& identifier); // don't copy
     120            Identifier(const Identifier&) = delete;
    121121            virtual ~Identifier();
    122122
     
    302302
    303303        private:
    304             ClassIdentifier(const ClassIdentifier<T>& identifier) {}    // don't copy
     304            ClassIdentifier(const ClassIdentifier<T>&) = delete;
    305305
    306306            void setConfigValues(T* object, Configurable*) const;
  • code/branches/cpp11_v2/src/libraries/core/class/IdentifierManager.h

    r10988 r10990  
    5454        public:
    5555            IdentifierManager();
    56             ~IdentifierManager() {}
     56            ~IdentifierManager() = default;
    5757
    5858            void addIdentifier(Identifier* identifier);
     
    9595
    9696        private:
    97             IdentifierManager(const IdentifierManager&); // not implemented
     97            IdentifierManager(const IdentifierManager&) = delete;
    9898
    9999            /// Increases the hierarchyCreatingCounter_s variable, causing all new objects to store their parents.
Note: See TracChangeset for help on using the changeset viewer.