Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 29, 2015, 4:47:42 PM (8 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/Core.h

    r10817 r10990  
    7373
    7474            /// Leave empty and use destroy() instead
    75             ~Core() {}
     75            ~Core() = default;
    7676            /// Destructor that also executes when the object fails to construct
    7777            void destroy();
     
    9292
    9393        private:
    94             Core(const Core&); //!< Don't use (undefined symbol)
     94            Core(const Core&) = delete;
    9595
    9696            void setThreadAffinity(int limitToCPU);
Note: See TracChangeset for help on using the changeset viewer.