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-list-traits.hxx | 9 +++++---- odb/std-map-traits.hxx | 14 ++++++++------ odb/std-set-traits.hxx | 12 ++++++------ odb/std-vector-traits.hxx | 9 +++++---- 4 files changed, 24 insertions(+), 20 deletions(-) (limited to 'odb') diff --git a/odb/std-list-traits.hxx b/odb/std-list-traits.hxx index 2f6ec96..6b57178 100644 --- a/odb/std-list-traits.hxx +++ b/odb/std-list-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_ordered; + typedef std::list container_type; + typedef V value_type; - typedef typename std::list::size_type index_type; - typedef std::list container_type; + typedef typename container_type::size_type index_type; typedef ordered_functions functions; 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; diff --git a/odb/std-set-traits.hxx b/odb/std-set-traits.hxx index 0c8071a..87213f7 100644 --- a/odb/std-set-traits.hxx +++ b/odb/std-set-traits.hxx @@ -14,14 +14,14 @@ namespace odb { - template - class access::container_traits > + template + class access::container_traits > { public: static container_kind const kind = ck_set; + typedef std::set container_type; typedef V value_type; - typedef std::set container_type; typedef set_functions functions; @@ -68,14 +68,14 @@ 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_multiset; + typedef std::multiset container_type; typedef V value_type; - typedef std::multiset container_type; typedef set_functions functions; diff --git a/odb/std-vector-traits.hxx b/odb/std-vector-traits.hxx index 6c439c8..fd82236 100644 --- a/odb/std-vector-traits.hxx +++ b/odb/std-vector-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_ordered; + typedef std::vector container_type; + typedef V value_type; - typedef typename std::vector::size_type index_type; - typedef std::vector container_type; + typedef typename container_type::size_type index_type; typedef ordered_functions functions; -- cgit v1.1