C++ compiler complaining about no default constructor
问题 Given this struct with a private stateful variable: struct Calibrate { private: Stitcher stitcher_obj_; } This is the stitcher object (with empty constructor): Stitcher::Stitcher(const std::vector<cv::Mat> &src_images){} When calling Calibrate , I am getting this error: default constructor of 'Calibrate' is implicitly deleted because field 'stitcher_obj_' has no default constructor Stitcher stitcher_obj_ ^ Thanks for any suggestions on how to fix this! 回答1: As soon as you provide a custom