From 1896d36996ab48ed7271e855d7e32b4e61f64896 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 23 Apr 2012 16:48:00 +0200 Subject: Polymorphic inheritance support --- odb/polymorphic-map.ixx | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 odb/polymorphic-map.ixx (limited to 'odb/polymorphic-map.ixx') diff --git a/odb/polymorphic-map.ixx b/odb/polymorphic-map.ixx new file mode 100644 index 0000000..4dbd174 --- /dev/null +++ b/odb/polymorphic-map.ixx @@ -0,0 +1,20 @@ +// file : odb/polymorphic-map.ixx +// copyright : Copyright (c) 2005-2012 Code Synthesis Tools CC +// license : GNU GPL v2; see accompanying LICENSE file + +namespace odb +{ + template + inline polymorphic_entry:: + polymorphic_entry () + { + polymorphic_entry_impl::insert (object_traits::info); + } + + template + inline polymorphic_entry:: + ~polymorphic_entry () + { + polymorphic_entry_impl::erase (object_traits::info); + } +} -- cgit v1.1