原因:默认参数用的assignment,而不是reference,要知道ostream并没有实现copy constructor/assignment operator(通过bing.com搜索Error C2280即可找到相关主题)

解决办法:将std::ostream os = std::cout修改为std::ostream& os = std::out

相关文章:

  • 2022-02-22
  • 2021-05-02
  • 2021-08-22
  • 2022-03-05
  • 2022-12-23
  • 2022-12-23
  • 2021-11-01
  • 2021-04-11
猜你喜欢
  • 2022-12-23
  • 2021-08-21
  • 2021-10-05
  • 2022-01-14
  • 2022-12-23
  • 2022-12-23
  • 2021-06-29
相关资源
相似解决方案