From 87d2f57e85e47e947b1918ed9395c7115c523fe6 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 24 Nov 2014 15:08:39 +0200 Subject: Add compiler error comments --- odb/database.txx | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'odb/database.txx') diff --git a/odb/database.txx b/odb/database.txx index 4329754..a46b8b0 100644 --- a/odb/database.txx +++ b/odb/database.txx @@ -94,10 +94,17 @@ namespace odb for (; b != e && n < object_traits::batch; ++n) { + // Compiler error pointing here? Perhaps the passed range is + // of const objects? + // typename persist_type::type* p (&(*b++)); + a[n] = const_cast (p); } + // Compiler error pointing here? Perhaps the object or the + // database does not support bulk operations? + // object_traits::persist ( *this, const_cast::type**> (a), @@ -182,6 +189,9 @@ namespace odb a[n] = &pointer_traits::get_ref (*p[n].ref); } + // Compiler error pointing here? Perhaps the object or the + // database does not support bulk operations? + // object_traits::persist (*this, a, n, mex); if (mex.fatal ()) @@ -302,6 +312,9 @@ namespace odb for (; b != e && n < object_traits::batch; ++n) a[n] = &opt::get_ref (*b++); + // Compiler error pointing here? Perhaps the object or the + // database does not support bulk operations? + // object_traits::update (*this, a, n, mex); if (mex.fatal ()) @@ -362,10 +375,13 @@ namespace odb for (; b != e && n < object_traits::batch; ++n) // Compiler error pointing here? Perhaps the object id type - // and the sequence element type don't match? + // and the range element type don't match? // a[n] = &(*b++); + // Compiler error pointing here? Perhaps the object or the + // database does not support bulk operations? + // object_traits::erase (*this, a, n, mex); if (mex.fatal ()) @@ -421,6 +437,9 @@ namespace odb for (; b != e && n < object_traits::batch; ++n) a[n] = &opt::get_ref (*b++); + // Compiler error pointing here? Perhaps the object or the + // database does not support bulk operations? + // object_traits::erase (*this, a, n, mex); if (mex.fatal ()) -- cgit v1.1