C++, removing #include or #include in class header

后端 未结 12 1372
感情败类
感情败类 2021-01-03 06:37

I want to remove, if possible, the includes of both and from my class header file. Both string and vector are return types of functions declare

12条回答
  •  清酒与你
    2021-01-03 07:10

    This won't help for vector or string, but it might be worth mentioning that there is a forward reference header for iostream, called iosfwd.

提交回复
热议问题