From 80078491bd1f3555051a64da6ec0daa397792f76 Mon Sep 17 00:00:00 2001 From: Kevin Ballard Date: Mon, 22 Sep 2014 21:25:51 -0700 Subject: [PATCH] Fix build failure std::vector::erase() didn't take const_iterator until C++11 >_< --- input.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input.cpp b/input.cpp index 0ddcc1fad..ed546b521 100644 --- a/input.cpp +++ b/input.cpp @@ -794,7 +794,7 @@ bool input_mapping_erase(const wcstring &sequence, const wcstring &mode) ASSERT_IS_MAIN_THREAD(); bool result = false; - for (std::vector::const_iterator it = mapping_list.begin(), end = mapping_list.end(); + for (std::vector::iterator it = mapping_list.begin(), end = mapping_list.end(); it != end; ++it) {