From a3d8a384fa7b114ed197e520cf2d25972225b13c Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Wed, 18 May 2005 14:11:20 +0000 Subject: [PATCH] Workaround for compilers that have trouble with lexical_cast. [SVN r29033] --- src/converter/registry.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/converter/registry.cpp b/src/converter/registry.cpp index 71e7d456..50da37d5 100644 --- a/src/converter/registry.cpp +++ b/src/converter/registry.cpp @@ -8,7 +8,6 @@ #include #include -#include #if defined(__APPLE__) && defined(__MACH__) && defined(__GNUC__) \ && __GNUC__ == 3 && __GNUC_MINOR__ <= 4 && !defined(__APPLE_CC__) @@ -161,9 +160,9 @@ namespace registry assert(slot == 0); // we have a problem otherwise if (slot != 0) { - std::string msg( - "to-Python converter for " - + lexical_cast(source_t) + std::string msg = ( + std::string("to-Python converter for ") + + source_t.name() + " already registered; second conversion method ignored." );