mirror of
https://github.com/osm2pgsql-dev/osm2pgsql.git
synced 2025-08-22 19:42:12 +00:00
Replace boost::scoped_ptr within tests
This commit is contained in:
@ -19,7 +19,6 @@
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
#include <boost/lexical_cast.hpp>
|
||||
|
||||
#include "tests/middle-tests.hpp"
|
||||
@ -47,7 +46,7 @@ void check_count(pg::conn_ptr &conn, int expected, const std::string &query) {
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
boost::scoped_ptr<pg::tempdb> db;
|
||||
std::unique_ptr<pg::tempdb> db;
|
||||
|
||||
try {
|
||||
db.reset(new pg::tempdb);
|
||||
@ -73,7 +72,7 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
osmdata_t osmdata(mid_pgsql, out_test);
|
||||
|
||||
boost::scoped_ptr<parse_delegate_t> parser(new parse_delegate_t(options.extra_attributes, options.bbox, options.projection, options.append));
|
||||
std::unique_ptr<parse_delegate_t> parser(new parse_delegate_t(options.extra_attributes, options.bbox, options.projection, options.append));
|
||||
|
||||
osmdata.start();
|
||||
|
||||
|
Reference in New Issue
Block a user