From acee0bb337fe1895a4d06166effccfbade095a1c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 25 Mar 2011 14:15:11 +0200 Subject: Make queries without by-reference parameters immutable This makes it possible to share such queries between multiple threads without the need for synchronization. --- odb/sqlite/query.hxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'odb/sqlite/query.hxx') diff --git a/odb/sqlite/query.hxx b/odb/sqlite/query.hxx index 517fd2f..f694b2e 100644 --- a/odb/sqlite/query.hxx +++ b/odb/sqlite/query.hxx @@ -92,6 +92,12 @@ namespace odb query_params& operator= (const query_params&); + query_params& + operator+= (const query_params&); + + void + add (details::shared_ptr); + private: typedef std::vector > params; -- cgit v1.1