aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/lazy-ptr-impl.txx5
1 files changed, 3 insertions, 2 deletions
diff --git a/odb/lazy-ptr-impl.txx b/odb/lazy-ptr-impl.txx
index f12f7fe..83bb58a 100644
--- a/odb/lazy-ptr-impl.txx
+++ b/odb/lazy-ptr-impl.txx
@@ -2,8 +2,6 @@
// copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
-#include <odb/database.hxx>
-
namespace odb
{
//
@@ -28,6 +26,9 @@ namespace odb
typename object_traits<T>::pointer_type lazy_ptr_base::
loader (database_type& db, const typename object_traits<T>::id_type& id)
{
+ // Compiler error pointing here? Perhaps you did not include
+ // <odb/database.hxx>?
+ //
return static_cast<DB&> (db).template load<
typename object_traits<T>::object_type> (id);
}