summaryrefslogtreecommitdiff
path: root/odb/common.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-07-03 20:08:05 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-07-03 20:08:05 +0200
commita7e3df85fd7180aa0daf0947e50b08d51b7e2380 (patch)
treeaef640985c21d7b2d9aaadcc3b0b376b5db83b6f /odb/common.cxx
parent80b868be1e7c249daa714b0c7a5f87694edb8664 (diff)
Add support for defining views as class template instantiations
Diffstat (limited to 'odb/common.cxx')
-rw-r--r--odb/common.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/odb/common.cxx b/odb/common.cxx
index 6d341b8..21475d3 100644
--- a/odb/common.cxx
+++ b/odb/common.cxx
@@ -551,9 +551,9 @@ check (semantics::typedefs& t)
if (ci == 0)
return false;
- // It must be an object or composite value.
+ // It must be an object, view, or composite value.
//
- if (!object (*ci) && !composite (*ci))
+ if (class_kind (*ci) == class_other)
return false;
// This typedef name should be the one that was used in the pragma.