aboutsummaryrefslogtreecommitdiff
path: root/odb/polymorphic-map.txx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/polymorphic-map.txx')
-rw-r--r--odb/polymorphic-map.txx8
1 files changed, 6 insertions, 2 deletions
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<R>::
insert (const info_type& i)
{
- polymorphic_map<root_type>*& pm (root_traits::map);
+ // VC10 cannot grok constructor call syntax here.
+ //
+ polymorphic_map<root_type>*& pm = root_traits::map;
if (pm == 0)
pm = new polymorphic_map<root_type>;
@@ -58,7 +60,9 @@ namespace odb
void polymorphic_entry_impl<R>::
erase (const info_type& i)
{
- polymorphic_map<root_type>*& pm (root_traits::map);
+ // VC10 cannot grok constructor call syntax here.
+ //
+ polymorphic_map<root_type>*& pm = root_traits::map;
pm->discriminator_map_.erase (&i.discriminator);
pm->type_map_.erase (&i.type);