From 88b5d11da136b8e827536b85e070e7e914e39506 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 17 Nov 2010 17:57:52 +0200 Subject: Use complete list of template parameters for container specializations --- odb/std-map-traits.hxx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'odb/std-map-traits.hxx') diff --git a/odb/std-map-traits.hxx b/odb/std-map-traits.hxx index 4f71868..8abeef7 100644 --- a/odb/std-map-traits.hxx +++ b/odb/std-map-traits.hxx @@ -14,15 +14,16 @@ namespace odb { - template - class access::container_traits > + template + class access::container_traits > { public: static container_kind const kind = ck_map; + typedef std::map container_type; + typedef K key_type; typedef V value_type; - typedef std::map container_type; typedef typename container_type::value_type pair_type; typedef map_functions functions; @@ -71,15 +72,16 @@ namespace odb // changes that. The current implementation in the generated code does // not guarantee this either. // - template - class access::container_traits > + template + class access::container_traits > { public: static container_kind const kind = ck_multimap; + typedef std::multimap container_type; + typedef K key_type; typedef V value_type; - typedef std::multimap container_type; typedef typename container_type::value_type pair_type; typedef map_functions functions; -- cgit v1.1