Skip to content

Commit

Permalink
different vector workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
alex85k committed Aug 20, 2014
1 parent 45658d1 commit 00c2504
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion include/osmium/index/map/stl_vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,11 @@ namespace osmium {
template <typename TId, typename TValue>
using DenseMapMem = VectorBasedDenseMap<std::vector<TValue>, TId, TValue>;

template <typename T>
using MyVector = std::vector<T>;

template <typename TId, typename TValue>
using SparseMapMem = VectorBasedSparseMap<TId, TValue, std::vector>;
using SparseMapMem = VectorBasedSparseMap<TId, TValue, MyVector>;

} // namespace map

Expand Down
5 changes: 4 additions & 1 deletion include/osmium/index/multimap/stl_vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,11 @@ namespace osmium {

namespace multimap {

template <typename T>
using MyVector = std::vector<T>;

template <typename TId, typename TValue>
using SparseMultimapMem = VectorBasedSparseMultimap<TId, TValue, std::vector>;
using SparseMultimapMem = VectorBasedSparseMultimap<TId, TValue, MyVector>;

} // namespace multimap

Expand Down

0 comments on commit 00c2504

Please sign in to comment.