From 2d3d20ee4e3ce52d6a2b235e86aa3fa63fe61611 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 20 Sep 2010 16:05:01 +0200 Subject: Add persist(const) version, make update()'s argument const --- odb/database.hxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'odb/database.hxx') diff --git a/odb/database.hxx b/odb/database.hxx index ab80da4..4858f0f 100644 --- a/odb/database.hxx +++ b/odb/database.hxx @@ -35,6 +35,10 @@ namespace odb // template typename object_traits::id_type + persist (const T& object); + + template + typename object_traits::id_type persist (T& object); // Throw object_not_persistent if not found. @@ -61,7 +65,7 @@ namespace odb // template void - update (T& object); + update (const T& object); // Make the object transient. Throw object_not_persistent if not // found. -- cgit v1.1