Changeset 3996


Ignore:
Timestamp:
Oct 7, 2020, 7:03:15 AM (21 months ago)
Author:
Peter
Message:

prefer std smart pointers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/omic/VcfFile.h

    r3823 r3996  
    2727#include <boost/noncopyable.hpp>
    2828#include <boost/iostreams/filtering_stream.hpp>
    29 #include <boost/smart_ptr/scoped_ptr.hpp>
    3029
    3130#include <fstream>
     31#include <memory>
    3232#include <string>
    3333
     
    116116    const VcfHeader& header(void) const;
    117117  private:
    118     boost::scoped_ptr<VcfHeader> header_;
     118    std::unique_ptr<VcfHeader> header_;
    119119    boost::iostreams::filtering_istream fis_;
    120120    // store here for easy garbage collection
    121     boost::scoped_ptr<std::ifstream> file_stream_;
     121    std::unique_ptr<std::ifstream> file_stream_;
    122122    std::string name_;
    123123    friend class VcfIterator;
Note: See TracChangeset for help on using the changeset viewer.