Explicitly qualify shared_ptr with boost::, otherwise there is a conflict with std::shared_ptr in C++0x mode.

This commit is contained in:
Sylvain Pion 2009-05-10 13:27:08 +00:00
parent 0d2880a413
commit 9f6aa6b120
2 changed files with 2 additions and 2 deletions

View File

@ -128,7 +128,7 @@ string edge2str ( E const& e )
} }
template<class D> template<class D>
string audit2str ( shared_ptr<D> const& d ) string audit2str ( boost::shared_ptr<D> const& d )
{ {
ostringstream ss ; ostringstream ss ;
ss << "[id:" << d->id ; ss << "[id:" << d->id ;

View File

@ -19,7 +19,7 @@ private :
optional<NT> cost ; optional<NT> cost ;
optional<Point> placement ; optional<Point> placement ;
} ; } ;
typedef shared_ptr<Data> Data_ptr ; typedef boost::shared_ptr<Data> Data_ptr ;
typedef map<int,Data_ptr> Table ; typedef map<int,Data_ptr> Table ;