summaryrefslogtreecommitdiff
path: root/src/scope.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-05-14 21:36:42 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-05-14 21:44:00 -0600
commitf4f3058b8cd75c04080f9b68cb54b9584eafb39f (patch)
treeeca9ca6ceca001209fb93c05b52e21031280d18c /src/scope.cc
parent96172669053bbba7263a370f109f70615049a0c6 (diff)
downloadfork-ledger-f4f3058b8cd75c04080f9b68cb54b9584eafb39f.tar.gz
fork-ledger-f4f3058b8cd75c04080f9b68cb54b9584eafb39f.tar.bz2
fork-ledger-f4f3058b8cd75c04080f9b68cb54b9584eafb39f.zip
Switch to using Boost.Format
Diffstat (limited to 'src/scope.cc')
-rw-r--r--src/scope.cc6
1 files changed, 3 insertions, 3 deletions
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;
}