Skip to content
Snippets Groups Projects
Commit dd8beecc authored by Markus Blatt's avatar Markus Blatt
Browse files

Rebind allocator for correct value type!

Fixes flyspray 432.

[[Imported from SVN: r5299]]
parent ef7b9a3c
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,8 @@ namespace Dune {
typedef std::list< std::pair<_Key, _Tp> > list_type;
typedef typename list_type::iterator iterator;
typedef typename std::less<key_type> cmp;
typedef std::map< key_type, iterator, cmp, allocator > map_type;
typedef std::map< key_type, iterator, cmp,
typename allocator::template rebind<std::pair<_Key, _Tp> >::other > map_type;
};
template <typename _Key, typename _Tp,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment