开发者

If I want to use std::shared_ptr, which header to include? [duplicate]

开发者 https://www.devze.com 2023-02-23 11:58 出处:网络
This question already has answers here: Where is shared_ptr? 开发者_运维技巧 (4 answers) Closed 9 years ago.
This question already has answers here: Where is shared_ptr? 开发者_运维技巧 (4 answers) Closed 9 years ago.

In c++0x shared_ptr will be moved from tr1 into std. So which header to include to get it?

I am using g++ 4.5 (ubuntu 10.10)


You'll find it in <memory> now.


  1. headfile is memory;
  2. It's defined in namespace std;
  3. You need specify -std=c++0x
0

精彩评论

暂无评论...
验证码 换一张
取 消