blob: 9e242ff2a9203ea8c1b93442ac45d4689df81bb0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
/*
* Copyright (c) 2010 Remko Tronçon
* Licensed under the GNU General Public License v3.
* See Documentation/Licenses/GPLv3.txt for more information.
*/
#pragma once
#include <boost/format.hpp>
namespace Swift {
inline boost::format format(const std::string& s) {
using namespace boost::io;
boost::format fmter(s);
fmter.exceptions( all_error_bits ^ ( too_many_args_bit | too_few_args_bit ) );
return fmter;
}
}
|