From 5cb90666197ab81977464b3449f0e33b77b13b8f Mon Sep 17 00:00:00 2001 From: Mario Lang Date: Mon, 17 Nov 2014 20:41:54 +0100 Subject: [PATCH] std::string::const_iterator vs std::string::iterator gives an error on gcc 4.9.1. Use decltype(start) to avoid the mismatch altogether. --- cfws_skipper_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cfws_skipper_test.cpp b/cfws_skipper_test.cpp index c7d36a1..f72385a 100644 --- a/cfws_skipper_test.cpp +++ b/cfws_skipper_test.cpp @@ -29,7 +29,7 @@ bool fixture::execute(std::string const& skipped) start = text.begin(); return phrase_parse(start, text.end(), eps, - cfws::skipper()); + cfws::skipper()); } }