Changeset 76:5febcf2998b0 in rrlib_design_patterns


Ignore:
Timestamp:
22.04.2016 12:29:36 (6 years ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
14.08
Children:
77:829be99a6898, 79:b085e0bf42cf
Phase:
public
Message:

Replaces deprecated std::auto_ptr with std::unique_ptr (removes warnings with newer compilers)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • singleton/tLifetimeTracker.h

    r71 r76  
    121121  std::unique_lock<std::mutex> lock(mutex); 
    122122 
    123   std::auto_ptr<tLifetimeTracker> p(new tLifetimeTracker(longevity, destroy_instance)); 
     123  std::unique_ptr<tLifetimeTracker> p(new tLifetimeTracker(longevity, destroy_instance)); 
    124124 
    125125  auto &tracker_list = tLifetimeTrackerList::Instance(); 
Note: See TracChangeset for help on using the changeset viewer.