If I want to use std::shared_ptr, which header to include? [duplicate]
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.
- headfile is memory;
- It's defined in namespace std;
- You need specify -std=c++0x
精彩评论