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.

File:
1 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;
Note: See TracChangeset for help on using the changeset viewer.