Skip to content

Commit a3d8a38

Browse files
committed
Workaround for compilers that have trouble with lexical_cast.
[SVN r29033]
1 parent 432d478 commit a3d8a38

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/converter/registry.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
#include <set>
1010
#include <stdexcept>
11-
#include <boost/lexical_cast.hpp>
1211

1312
#if defined(__APPLE__) && defined(__MACH__) && defined(__GNUC__) \
1413
&& __GNUC__ == 3 && __GNUC_MINOR__ <= 4 && !defined(__APPLE_CC__)
@@ -161,9 +160,9 @@ namespace registry
161160
assert(slot == 0); // we have a problem otherwise
162161
if (slot != 0)
163162
{
164-
std::string msg(
165-
"to-Python converter for "
166-
+ lexical_cast<std::string>(source_t)
163+
std::string msg = (
164+
std::string("to-Python converter for ")
165+
+ source_t.name()
167166
+ " already registered; second conversion method ignored."
168167
);
169168

0 commit comments

Comments
 (0)