Boost logo

Boost :

From: Markus Schöpflin (markus.schoepflin_at_[hidden])
Date: 2005-05-18 04:44:50


Attached patch allows the python library to successfully build on
Tru64/cxx65. Ok to commit?

Markus

Index: registry.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/python/src/converter/registry.cpp,v
retrieving revision 1.28
diff -u -w -r1.28 registry.cpp
--- registry.cpp 16 May 2005 03:31:12 -0000 1.28
+++ registry.cpp 18 May 2005 09:41:25 -0000
@@ -161,11 +161,13 @@
       assert(slot == 0); // we have a problem otherwise
       if (slot != 0)
       {
- std::string msg(
- "to-Python converter for "
- + lexical_cast<std::string>(source_t)
- + " already registered; second conversion method ignored."
- );
+ std::string msg("to-Python converter for ");
+#if BOOST_WORKAROUND(__DECCXX_VER, BOOST_TESTED_AT(60590042))
+ msg += source_t.name();
+#else
+ msg += lexical_cast<std::string>(source_t);
+#endif
+ msg += " already registered; second conversion method ignored.";
           
           if ( ::PyErr_Warn( NULL, const_cast<char*>(msg.c_str()) ) )
           {


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk