shared_ptr in std::tr1
Asked Answered
H

3

9

I am working on a platform with a gcc compiler however boost cannot compile on it.

I am wondering what is the proper way to include the shared_ptr in std:tr1 on gcc? the file i looked in said not to include it directly, from what i can tell no other file includes it either :|

Heyde answered 23/1, 2009 at 0:33 Comment(0)
F
17

In G++ 4.3,

#include <tr1/memory>

should do the trick. You'll find shared_ptr at std::tr1::shared_ptr.

Florie answered 4/5, 2009 at 22:55 Comment(0)
M
4

Boost itself has the answer.

Mitrailleuse answered 27/1, 2009 at 21:15 Comment(0)
U
3

Boost can not compile on it? Most of the boost library doesn't need to be compiled to be used, and I guess shared_ptr doesn't either.

Undercoating answered 11/5, 2009 at 22:39 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.