diff --git a/tests/cpp_tests/image_io_test.cpp b/tests/cpp_tests/image_io_test.cpp index e41eebf8b..592b1a28c 100644 --- a/tests/cpp_tests/image_io_test.cpp +++ b/tests/cpp_tests/image_io_test.cpp @@ -75,8 +75,8 @@ int main(int argc, char** argv) BOOST_TEST( type ); try { - std::auto_ptr reader(mapnik::get_image_reader(should_throw,*type)); - if (reader.get()) BOOST_TEST( false ); + std::unique_ptr reader(mapnik::get_image_reader(should_throw,*type)); + BOOST_TEST( false ); } catch (std::exception const&) {