From 51cffa4717c1fb04422fcadb9faeae0b82e4b561 Mon Sep 17 00:00:00 2001 From: Alexandr Akulich Date: Wed, 11 Nov 2015 16:52:29 +0600 Subject: [PATCH] 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. --- src/xrCore/Containers/AssociativeVector.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xrCore/Containers/AssociativeVector.hpp b/src/xrCore/Containers/AssociativeVector.hpp index 19d54c1f715..e88e84d2129 100644 --- a/src/xrCore/Containers/AssociativeVector.hpp +++ b/src/xrCore/Containers/AssociativeVector.hpp @@ -119,8 +119,8 @@ IC _associative_vector::AssociativeVector(const key_compare &predicate) : TEMPLATE_SPECIALIZATION template 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(*this)); } TEMPLATE_SPECIALIZATION