aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-11-06 17:56:02 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-11-06 17:56:02 +0200
commit116e353d07f3f65e3d9e29e37efedc37f301e243 (patch)
tree88f2d4c2467d5ef26238d0f2b952636efdec8526
parent6af17f423985527a4b849406aaef712474bb1d44 (diff)
Add comment to the likely place of an error
-rw-r--r--odb/database.txx3
1 files changed, 3 insertions, 0 deletions
diff --git a/odb/database.txx b/odb/database.txx
index a94f471..31e9153 100644
--- a/odb/database.txx
+++ b/odb/database.txx
@@ -62,6 +62,9 @@ namespace odb
if (!transaction::has_current ())
throw not_in_transaction ();
+ // Compiler error pointing here? Perhaps the object doesn't have the
+ // default constructor?
+ //
return object_traits<T>::find (*this, id);
}