[gnome-commander] Fix for gcc-4.7 compiling problem
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Fix for gcc-4.7 compiling problem
- Date: Thu, 5 Jan 2012 20:29:38 +0000 (UTC)
commit a8cf386412f9c287d7d96dc1762d7b0f247d8908
Author: Mamoru Tasaka <mtasaka fedoraproject org>
Date: Thu Jan 5 21:20:53 2012 +0100
Fix for gcc-4.7 compiling problem
src/dict.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/dict.h b/src/dict.h
index 229fe4a..0d21a3b 100644
--- a/src/dict.h
+++ b/src/dict.h
@@ -55,8 +55,8 @@ class DICT
template <typename KEY, typename VAL>
inline void DICT<KEY,VAL>::add(const KEY k, const VAL &v)
{
- std::pair<typename KEY_COLL::iterator,bool> k_pos = k_coll.insert(make_pair(k,(const VAL *) NULL));
- std::pair<typename VAL_COLL::iterator,bool> v_pos = v_coll.insert(make_pair(v,(const KEY *) NULL));
+ std::pair<typename KEY_COLL::iterator,bool> k_pos = k_coll.insert(std::make_pair(k,(const VAL *) NULL));
+ std::pair<typename VAL_COLL::iterator,bool> v_pos = v_coll.insert(std::make_pair(v,(const KEY *) NULL));
if (k_pos.second)
k_pos.first->second = &v_pos.first->first;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]