Changeset 132:156aa69a87b5 in rrlib_util


Ignore:
Timestamp:
10.04.2015 16:48:44 (5 years ago)
Author:
Tobias Föhst <tobias.foehst@…>
Branch:
13.10
Phase:
public
Message:

Bugfix: special member functions for move semantics are not generated if others are declared. This restores default movability of non-copyable objects.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tNoncopyable.h

    r98 r132  
    100100protected: 
    101101 
    102   tNoncopyable() {} 
     102  tNoncopyable() = default; 
     103  ~tNoncopyable() = default; 
    103104 
    104   ~tNoncopyable() {} 
     105  tNoncopyable(tNoncopyable&&) = default; // still movable 
     106  tNoncopyable& operator=(tNoncopyable &&) = default; // still movable 
    105107 
    106108}; 
Note: See TracChangeset for help on using the changeset viewer.