From 42ad88d4d878bcf3b2ca3b2d23ff2106a6bdafb8 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 15 Aug 2016 16:29:47 +0200 Subject: Remove inclusion of from lazy-ptr header Its inclusion slowed down compilation significantly. The consequence of this change is that you will now have to make sure is included in source files that initialize persistent lazy_ptr instances. But that is probably acceptable (and is probably already the case anyway most of the time). --- odb/lazy-ptr-impl.txx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'odb') 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 - namespace odb { // @@ -28,6 +26,9 @@ namespace odb typename object_traits::pointer_type lazy_ptr_base:: loader (database_type& db, const typename object_traits::id_type& id) { + // Compiler error pointing here? Perhaps you did not include + // ? + // return static_cast (db).template load< typename object_traits::object_type> (id); } -- cgit v1.1