aboutsummaryrefslogtreecommitdiff
path: root/odb/std-map-traits.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-11-17 17:57:52 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-11-17 17:57:52 +0200
commit88b5d11da136b8e827536b85e070e7e914e39506 (patch)
tree733dc1a3b2cd16ebc8ff1013b9da322f510a9f5f /odb/std-map-traits.hxx
parenta157760b26ccbd16250e263ee16d12a483124227 (diff)
Use complete list of template parameters for container specializations
Diffstat (limited to 'odb/std-map-traits.hxx')
-rw-r--r--odb/std-map-traits.hxx14
1 files changed, 8 insertions, 6 deletions
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 <typename K, typename V>
- class access::container_traits<std::map<K, V> >
+ template <typename K, typename V, typename C, typename A>
+ class access::container_traits<std::map<K, V, C, A> >
{
public:
static container_kind const kind = ck_map;
+ typedef std::map<K, V, C, A> container_type;
+
typedef K key_type;
typedef V value_type;
- typedef std::map<K, V> container_type;
typedef typename container_type::value_type pair_type;
typedef map_functions<key_type, value_type> functions;
@@ -71,15 +72,16 @@ namespace odb
// changes that. The current implementation in the generated code does
// not guarantee this either.
//
- template <typename K, typename V>
- class access::container_traits<std::multimap<K, V> >
+ template <typename K, typename V, typename C, typename A>
+ class access::container_traits<std::multimap<K, V, C, A> >
{
public:
static container_kind const kind = ck_multimap;
+ typedef std::multimap<K, V, C, A> container_type;
+
typedef K key_type;
typedef V value_type;
- typedef std::multimap<K, V> container_type;
typedef typename container_type::value_type pair_type;
typedef map_functions<key_type, value_type> functions;