summaryrefslogtreecommitdiff
path: root/odb/validator.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-08-19 17:05:24 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-08-19 17:05:24 +0200
commit2b02d443ab344bc02dfc2891fb1a57c6520c393f (patch)
tree3bff59757b0ef986d70c67def93d689fb18a5b66 /odb/validator.cxx
parent33cd64535d2307a2e7884ee0796e1aae42937aaf (diff)
Use type names as specified in the header that we compile
Diffstat (limited to 'odb/validator.cxx')
-rw-r--r--odb/validator.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/odb/validator.cxx b/odb/validator.cxx
index a834244..1acdea8 100644
--- a/odb/validator.cxx
+++ b/odb/validator.cxx
@@ -27,8 +27,9 @@ namespace
count_++;
semantics::type& type (m.type ());
+ semantics::belongs& b (m.belongs ());
- if (type.anonymous ())
+ if (type.fq_anonymous (m.belongs ().hint ()))
{
// Can be a template-id (which we should handle eventually) or an
// anonymous type in member declaration (e.g., struct {...} m_;).