From 0fd5e88d6e31e6dc5259fa5428835fe818440abc Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 30 Apr 2012 11:45:29 +0200 Subject: VC++ workarounds --- odb/polymorphic-map.txx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'odb/polymorphic-map.txx') diff --git a/odb/polymorphic-map.txx b/odb/polymorphic-map.txx index 7b1b81a..d7b6e36 100644 --- a/odb/polymorphic-map.txx +++ b/odb/polymorphic-map.txx @@ -43,7 +43,9 @@ namespace odb void polymorphic_entry_impl:: insert (const info_type& i) { - polymorphic_map*& pm (root_traits::map); + // VC10 cannot grok constructor call syntax here. + // + polymorphic_map*& pm = root_traits::map; if (pm == 0) pm = new polymorphic_map; @@ -58,7 +60,9 @@ namespace odb void polymorphic_entry_impl:: erase (const info_type& i) { - polymorphic_map*& pm (root_traits::map); + // VC10 cannot grok constructor call syntax here. + // + polymorphic_map*& pm = root_traits::map; pm->discriminator_map_.erase (&i.discriminator); pm->type_map_.erase (&i.type); -- cgit v1.1