mirror of
https://github.com/boostorg/python.git
synced 2026-01-25 18:32:24 +00:00
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]
This commit is contained in:
@@ -22,11 +22,10 @@ PyTypeObject* registration::get_class_object() const
|
||||
{
|
||||
if (this->m_class_object == 0)
|
||||
{
|
||||
std::string name = lexical_cast<std::string>(this->target_type);
|
||||
::PyErr_Format(
|
||||
PyExc_TypeError
|
||||
, const_cast<char*>("No Python class registered for C++ class %s")
|
||||
, name.c_str());
|
||||
, target_type.name());
|
||||
|
||||
throw_error_already_set();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user