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/context.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/context.h') diff --git a/src/context.h b/src/context.h index 45bb9990..09734b3e 100644 --- a/src/context.h +++ b/src/context.h @@ -103,6 +103,9 @@ public: void warning(const string& what) const { warning_func(location() + what); } + void warning(const boost::format& what) const { + warning_func(location() + string(what.str())); + } }; inline parse_context_t open_for_reading(const path& pathname, @@ -112,7 +115,7 @@ inline parse_context_t open_for_reading(const path& pathname, if (! exists(filename)) throw_(std::runtime_error, - _("Cannot read journal file %1") << filename); + _f("Cannot read journal file %1%") % filename); #if BOOST_VERSION >= 104600 && BOOST_FILESYSTEM_VERSION >= 3 path parent(filesystem::absolute(pathname, cwd).parent_path()); -- cgit v1.2.3