原因:默认参数用的assignment,而不是reference,要知道ostream并没有实现copy constructor/assignment operator(通过bing.com搜索Error C2280即可找到相关主题)
解决办法:将std::ostream os = std::cout修改为std::ostream& os = std::out
原因:默认参数用的assignment,而不是reference,要知道ostream并没有实现copy constructor/assignment operator(通过bing.com搜索Error C2280即可找到相关主题)
解决办法:将std::ostream os = std::cout修改为std::ostream& os = std::out