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/scope.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/scope.cc') diff --git a/src/scope.cc b/src/scope.cc index 00327159..9112040c 100644 --- a/src/scope.cc +++ b/src/scope.cc @@ -58,7 +58,7 @@ void symbol_scope_t::define(const symbol_t::kind_t kind, (symbol_t(kind, name, def), def)); if (! result.second) throw_(compile_error, - _("Redefinition of '%1' in the same scope") << name); + _f("Redefinition of '%1%' in the same scope") % name); } } @@ -88,8 +88,8 @@ value_t& call_scope_t::resolve(const std::size_t index, context_scope_t scope(*this, context, required); value = as_expr(value)->calc(scope, locus, depth); if (required && ! value.is_type(context)) - throw_(calc_error, _("Expected %1 for argument %2, but received %3") - << value.label(context) << index << value.label()); + throw_(calc_error, _f("Expected %1% for argument %2%, but received %3%") + % value.label(context) % index % value.label()); } return value; } -- cgit v1.2.3