+ replace auto_ptr with unique_ptr

This commit is contained in:
artemp 2013-08-30 09:49:44 +01:00
parent 4f4e2b001e
commit 4a2f59d9d1

View file

@ -75,8 +75,8 @@ int main(int argc, char** argv)
BOOST_TEST( type ); BOOST_TEST( type );
try try
{ {
std::auto_ptr<mapnik::image_reader> reader(mapnik::get_image_reader(should_throw,*type)); std::unique_ptr<mapnik::image_reader> reader(mapnik::get_image_reader(should_throw,*type));
if (reader.get()) BOOST_TEST( false ); BOOST_TEST( false );
} }
catch (std::exception const&) catch (std::exception const&)
{ {