Changeset 4022


Ignore:
Timestamp:
Jan 4, 2021, 3:42:36 AM (9 months ago)
Author:
Peter
Message:

prefer std::shared_ptr over boost

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/deleter.cc

    r2881 r4022  
    2626#include "yat/utility/Deleter.h"
    2727
    28 #include <boost/shared_ptr.hpp>
     28#include <memory>
    2929
    3030using namespace theplu::yat;
     
    4141
    4242  int* p0 = new int(2);
    43   boost::shared_ptr<int> smartp(p0, del);
     43  std::shared_ptr<int> smartp(p0, del);
    4444
    4545  Deleter del2(false);
    4646  int* p = new int(3);
    4747  if (true) {
    48     boost::shared_ptr<int> sp(p, del2);
     48    std::shared_ptr<int> sp(p, del2);
    4949    suite.out() << *sp << "\n";
    5050  }
  • trunk/yat/utility/Deleter.h

    r2858 r4022  
    2323*/
    2424
     25#include <new> // for delete operator
     26
    2527namespace theplu {
    2628namespace yat {
     
    3133
    3234     The class is typically used as second argument to a
    33      boost::shared_ptr, which enables to decide at runtime whether the
     35     std::shared_ptr, which enables to decide at runtime whether the
    3436     shared_ptr should own the pointee, i.e., should the pointee be
    3537     destructed at destruction of last shared_ptr pointing to the
Note: See TracChangeset for help on using the changeset viewer.