From f4f3058b8cd75c04080f9b68cb54b9584eafb39f Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 14 May 2012 21:36:42 -0600 Subject: Switch to using Boost.Format --- src/option.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/option.h') diff --git a/src/option.h b/src/option.h index b0d4e0f0..80be69c4 100644 --- a/src/option.h +++ b/src/option.h @@ -127,7 +127,7 @@ public: string str() const { assert(handled); if (value.empty()) - throw_(std::runtime_error, _("No argument provided for %1") << desc()); + throw_(std::runtime_error, _f("No argument provided for %1%") % desc()); return value; } @@ -168,18 +168,18 @@ public: value_t handler(call_scope_t& args) { if (wants_arg) { if (args.size() < 2) - throw_(std::runtime_error, _("No argument provided for %1") << desc()); + throw_(std::runtime_error, _f("No argument provided for %1%") % desc()); else if (args.size() > 2) - throw_(std::runtime_error, _("To many arguments provided for %1") << desc()); + throw_(std::runtime_error, _f("To many arguments provided for %1%") % desc()); else if (! args[0].is_string()) - throw_(std::runtime_error, _("Context argument for %1 not a string") << desc()); + throw_(std::runtime_error, _f("Context argument for %1% not a string") % desc()); on(args.get(0), args.get(1)); } else if (args.size() < 1) { - throw_(std::runtime_error, _("No argument provided for %1") << desc()); + throw_(std::runtime_error, _f("No argument provided for %1%") % desc()); } else if (! args[0].is_string()) { - throw_(std::runtime_error, _("Context argument for %1 not a string") << desc()); + throw_(std::runtime_error, _f("Context argument for %1% not a string") % desc()); } else { on(args.get(0)); -- cgit v1.2.3