aboutsummaryrefslogtreecommitdiff
path: root/odb/std-vector-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-vector-traits.hxx
parenta157760b26ccbd16250e263ee16d12a483124227 (diff)
Use complete list of template parameters for container specializations
Diffstat (limited to 'odb/std-vector-traits.hxx')
-rw-r--r--odb/std-vector-traits.hxx9
1 files changed, 5 insertions, 4 deletions
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 <typename V>
- class access::container_traits<std::vector<V> >
+ template <typename V, typename A>
+ class access::container_traits<std::vector<V, A> >
{
public:
static container_kind const kind = ck_ordered;
+ typedef std::vector<V, A> container_type;
+
typedef V value_type;
- typedef typename std::vector<V>::size_type index_type;
- typedef std::vector<V> container_type;
+ typedef typename container_type::size_type index_type;
typedef ordered_functions<index_type, value_type> functions;