I think I\'ll get right into it and start with the code:
#include
#include
#include
class test : public std:
The problem is with this:
test(test&& old) {};
This lets you construct a new test from an rvalue test, yes, but it says nothing about your base, which is simply being default constructed (no open file). What you want is this:
test(test&& old) : std::ofstream(std::move(old)) {};
Which will move the stream from old into the base.