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/tools/TextureGenerator.h

    r10769 r10990  
    4949
    5050    private:
    51         TextureGenerator();
    52         TextureGenerator(const TextureGenerator&);
    53         ~TextureGenerator();
     51        // static class, no instances allowed:
     52        TextureGenerator() = delete;
     53        TextureGenerator(const TextureGenerator&) = delete;
     54        ~TextureGenerator() = delete;
    5455
    5556        static std::map<std::string, std::map<ColourValue, std::string>> materials_s;
Note: See TracChangeset for help on using the changeset viewer.