summaryrefslogtreecommitdiff
path: root/odb/semantics/fundamental.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-06-04 16:27:35 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-06-04 16:27:35 +0200
commit633f9c5ac574750799efdfe5d1eb31db40a267da (patch)
tree22a579a5e476f7f6ad0cec0d2d39a9247d559ac7 /odb/semantics/fundamental.hxx
parent05216e9cbe22690ec45f0ca2665d3b1ee7dedb55 (diff)
Make nameable::fq_name virtual
Override it for fundamental type to do the right thing.
Diffstat (limited to 'odb/semantics/fundamental.hxx')
-rw-r--r--odb/semantics/fundamental.hxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/odb/semantics/fundamental.hxx b/odb/semantics/fundamental.hxx
index 5cee2ac..cd68688 100644
--- a/odb/semantics/fundamental.hxx
+++ b/odb/semantics/fundamental.hxx
@@ -14,8 +14,11 @@ namespace semantics
// Fundamental C++ types.
//
- class fund_type: public type
+ struct fund_type: public type
{
+ virtual string
+ fq_name () const;
+
protected:
fund_type (tree tn)
: type (tn) {}