From 3d0579cc083b569e8a1be6ca8bd9d54b734709a7 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Mon, 25 Nov 2002 20:52:49 +0000 Subject: [PATCH] Fix for VC7. For some reason lexical_cast doesn't seem to work out too well. We'll need to be careful how we do type_info decoding once we get the G++ fixes in. [SVN r16410] --- src/converter/registry.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/converter/registry.cpp b/src/converter/registry.cpp index a3d7913d..85ece278 100644 --- a/src/converter/registry.cpp +++ b/src/converter/registry.cpp @@ -22,11 +22,10 @@ PyTypeObject* registration::get_class_object() const { if (this->m_class_object == 0) { - std::string name = lexical_cast(this->target_type); ::PyErr_Format( PyExc_TypeError , const_cast("No Python class registered for C++ class %s") - , name.c_str()); + , target_type.name()); throw_error_already_set(); }