diff options
Diffstat (limited to 'prepared')
-rw-r--r-- | prepared/driver.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/prepared/driver.cxx b/prepared/driver.cxx index 470d0b8..7d561a9 100644 --- a/prepared/driver.cxx +++ b/prepared/driver.cxx @@ -192,11 +192,11 @@ main (int argc, char* argv[]) "person-age-name-query", [] (const char* name, connection& c) { - auto_ptr<params> p (new params); + unique_ptr<params> p (new params); query q (query::age > query::_ref (p->age) && query::first == query::_ref (p->first)); prepared_query<person> pq (c.prepare_query<person> (name, q)); - c.cache_query (pq, p); + c.cache_query (pq, std::move (p)); }); */ |