C++ std::shared_ptr usage and information

后端 未结 3 559
梦如初夏
梦如初夏 2020-12-15 06:35

I am trying to use std::shared_ptr in my code. I have seen there have been other questions on the subject, but I am still getting a compiler error. Have I got t

3条回答
  •  暖寄归人
    2020-12-15 07:27

    std::tr1::shared_ptr is part of the TR1 additions to the C++ STL.
    With GCC, it is available either through #include (GCC 4.1) or #include (GCC 4.3)

提交回复
热议问题