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/Game.h

    r10845 r10990  
    9292
    9393        //! Leave empty and use cleanup() instead
    94         ~Game() {}
     94        ~Game() = default;
    9595        /// Destructor that also executes when object fails to construct
    9696        void destroy();
     
    122122        {
    123123        public:
    124             virtual ~GameStateFactory() { }
     124            virtual ~GameStateFactory() = default;
    125125            static std::shared_ptr<GameState> fabricate(const GameStateInfo& info);
    126126            template <class T>
     
    145145        };
    146146
    147         Game(Game&); // don't mess with singletons
     147        Game(const Game&) = delete;
    148148
    149149        void loadGraphics();
Note: See TracChangeset for help on using the changeset viewer.