Skip to content

Commit 51cffa4

Browse files
committed
xrCore/Containers/AssociativeVector.hpp: Fixed compilation with gcc.
Removed default arguments from template specialization. Error: AssociativeVector.hpp:122 default argument given for a template parameter after previous specification at AssociativeVector.hpp:51.
1 parent 5a01b05 commit 51cffa4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/xrCore/Containers/AssociativeVector.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ IC _associative_vector::AssociativeVector(const key_compare &predicate) :
119119
TEMPLATE_SPECIALIZATION
120120
template <typename TIterator>
121121
IC _associative_vector::AssociativeVector(TIterator first, TIterator last,
122-
const key_compare &predicate = key_compare(), const allocator_type &allocator = allocator_type()) :
123-
inherited(first,last), TComparer(predicate)
122+
const key_compare &predicate, const allocator_type &allocator) :
123+
inherited(first,last), TComparer(predicate)
124124
{ std::sort(begin(), end(), static_cast<TComparer&>(*this)); }
125125

126126
TEMPLATE_SPECIALIZATION

0 commit comments

Comments
 (0)