A.hpp:
class A {
  private:
   std::unique_ptr<std::ifstream> file;
  public:
   A(std::string filename);
};
A.cpp:
A::A(std::string filename) {
  this->file(new std::ifstream(filename.c_str()));
}
The error that I get is thrown:
A.cpp:7:43: error: no match for call to ‘(std::unique_ptr<std::basic_ifstream<char> >) (std::ifstream*)’
Does anyone have any insight as to why this is occurring? I've tried many different ways to get this to work but to no avail.
 
    