From 18aeb349f502bfdf3ddc64e6a3f671a0a818a3f3 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 1 Aug 2014 07:15:19 +0200 Subject: Add support for defining persistent objects as class template instantiations --- odb/common.cxx | 4 ++-- odb/common.hxx | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'odb') diff --git a/odb/common.cxx b/odb/common.cxx index f52cee6..b75d323 100644 --- a/odb/common.cxx +++ b/odb/common.cxx @@ -504,9 +504,9 @@ check (semantics::typedefs& t) if (ci == 0) return false; - // It must be a composite value. + // It must be an object or composite value. // - if (!composite (*ci)) + if (!object (*ci) && !composite (*ci)) return false; // This typedef name should be the one that was used in the pragma. diff --git a/odb/common.hxx b/odb/common.hxx index 0fcd481..6e70f43 100644 --- a/odb/common.hxx +++ b/odb/common.hxx @@ -420,7 +420,8 @@ private: columns columns_; }; -// Traverse composite values that are class template instantiations. +// Traverse objects and composite values that are class template +// instantiations. // struct typedefs: traversal::typedefs, context { -- cgit v1.1