From d9c57f58d9716fb5f574ea758b0e611ce81cd73d Mon Sep 17 00:00:00 2001 From: Sascha Ochsenknecht Date: Sun, 6 Dec 2009 09:56:54 +0000 Subject: [PATCH] consistent handling of namespace std [SVN r58185] --- src/cmdline.cpp | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/src/cmdline.cpp b/src/cmdline.cpp index c4074d6..8abc7eb 100644 --- a/src/cmdline.cpp +++ b/src/cmdline.cpp @@ -35,17 +35,17 @@ namespace boost { namespace program_options { using namespace boost::program_options::command_line_style; invalid_syntax:: - invalid_syntax(const std::string& tokens, kind_t kind) + invalid_syntax(const string& tokens, kind_t kind) : error(error_message(kind).append(" in '").append(tokens).append("'")) , m_tokens(tokens) , m_kind(kind) {} - std::string + string invalid_syntax::error_message(kind_t kind) { // Initially, store the message in 'const char*' variable, - // to avoid conversion to std::string in all cases. + // to avoid conversion to string in all cases. const char* msg; switch(kind) { @@ -89,7 +89,7 @@ namespace boost { namespace program_options { } invalid_command_line_syntax:: - invalid_command_line_syntax(const std::string& tokens, kind_t kind) + invalid_command_line_syntax(const string& tokens, kind_t kind) : invalid_syntax(tokens, kind) {} @@ -105,7 +105,7 @@ namespace boost { namespace program_options { namespace detail { #endif - cmdline::cmdline(const std::vector& args) + cmdline::cmdline(const vector& args) { init(args); } @@ -122,7 +122,7 @@ namespace boost { namespace program_options { namespace detail { } void - cmdline::init(const std::vector& args) + cmdline::init(const vector& args) { this->args = args; m_style = command_line_style::default_style; @@ -445,11 +445,11 @@ namespace boost { namespace program_options { namespace detail { } } - std::vector