From 01968cb96ec759bfad19507823d22431e6bf80e4 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 29 Mar 2013 14:21:55 +0100 Subject: String: inherit from std::string rather than using it as a backend --- src/input_handler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/input_handler.cc') diff --git a/src/input_handler.cc b/src/input_handler.cc index 3e5c30c9..ddc3035d 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -500,7 +500,7 @@ static BufferCompletion complete_opt(const BufferIterator& pos, OptionManager& o auto& desc = opt[0]; Regex re(R"((\d+):(\d+)@(\d+))"); - boost::match_results match; + boost::smatch match; if (boost::regex_match(desc.begin(), desc.end(), match, re)) { LineCount line = str_to_int(String(match[1].first, match[1].second)) - 1; -- cgit v1.2.3