aboutsummaryrefslogtreecommitdiff
path: root/odb
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2014-08-01 07:15:19 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2014-08-01 11:06:50 +0200
commit18aeb349f502bfdf3ddc64e6a3f671a0a818a3f3 (patch)
tree6a97c7b27f1387c8e902b3efd192b1557f9dea63 /odb
parentfd3f1c89d75950c3603661a7255866d680ec5033 (diff)
Add support for defining persistent objects as class template instantiations
Diffstat (limited to 'odb')
-rw-r--r--odb/common.cxx4
-rw-r--r--odb/common.hxx3
2 files changed, 4 insertions, 3 deletions
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
{