Boost logo

Boost :

From: Nicola Musatti (Nicola.Musatti_at_[hidden])
Date: 2006-02-28 17:23:40


Hallo,
the following patch makes it possible to compile process_jam_log.cpp
with the Borland compilers. In a ternary operator the Borland compiler
doesn't apply the implicit conversin from a [const] char * to a std::string.

Cheers,
Nicola Musatti

Index: process_jam_log.cpp
===================================================================
RCS file: /cvsroot/boost/boost/tools/regression/process_jam_log.cpp,v
retrieving revision 1.38
diff -d -b -u -r1.38 process_jam_log.cpp
--- process_jam_log.cpp 28 Jun 2005 00:24:41 -0000 1.38
+++ process_jam_log.cpp 23 Jan 2006 23:06:22 -0000
@@ -462,7 +462,7 @@
 
         // add the "run" stop_message action
         tl.add_action( action_name,
- result == "succeed" && note() ? "note" : result,
+ result == "succeed" && note() ? std::string("note") : result,
           timestamp, content );
       }
 


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