From 588f2ef2f51d7bdf209820bfb244034863601939 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 25 Oct 2009 04:35:19 -0400 Subject: Fixed many compiler warnings from g++ 4.4 --- src/error.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/error.h') diff --git a/src/error.h b/src/error.h index 42eab8d9..21f5bd8f 100644 --- a/src/error.h +++ b/src/error.h @@ -87,14 +87,14 @@ extern std::ostringstream _ctxt_buffer; string error_context(); string file_context(const path& file, std::size_t line); -string line_context(const string& line, - std::size_t pos = 0, - std::size_t end_pos = 0); - -string source_context(const path& file, - istream_pos_type pos, - istream_pos_type end_pos, - const string& prefix = ""); +string line_context(const string& line, + const string::size_type pos = 0, + const string::size_type end_pos = 0); + +string source_context(const path& file, + const istream_pos_type pos, + const istream_pos_type end_pos, + const string& prefix = ""); #define DECLARE_EXCEPTION(name, kind) \ class name : public kind { \ -- cgit v1.2.3