Skip to content

Commit

Permalink
xrCore/Containers/AssociativeVector.hpp: Fixed compilation with gcc.
Browse files Browse the repository at this point in the history
Removed default arguments from template specialization.

Error: AssociativeVector.hpp:122 default argument given for a template
parameter after previous specification at AssociativeVector.hpp:51.
  • Loading branch information
Kaffeine committed Nov 11, 2015
1 parent 5a01b05 commit 51cffa4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xrCore/Containers/AssociativeVector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ IC _associative_vector::AssociativeVector(const key_compare &predicate) :
TEMPLATE_SPECIALIZATION
template <typename TIterator>
IC _associative_vector::AssociativeVector(TIterator first, TIterator last,
const key_compare &predicate = key_compare(), const allocator_type &allocator = allocator_type()) :
inherited(first,last), TComparer(predicate)
const key_compare &predicate, const allocator_type &allocator) :
inherited(first,last), TComparer(predicate)
{ std::sort(begin(), end(), static_cast<TComparer&>(*this)); }

TEMPLATE_SPECIALIZATION
Expand Down

0 comments on commit 51cffa4

Please sign in to comment.