I\'ve got a problem with this code:
#include struct A { A(std::ifstream input) { //some actions } }; int main() {
Streams are non copyable.
So you need to pass by reference.
struct A { A(std::ifstream& input) ^^^^^ { //some actions } };