root cint ignores const ?

From: Chris Jones <jonesc_at_hep.phy.cam.ac.uk>
Date: Tue, 26 Jul 2005 12:21:45 +0100


Hi,

Is there a (good) reason why root ignores the const qualifier, when interpreted. I.e

the macro

{

   const std::string OK = "ShouldNotChange";    OK += " oh dear";
   cout << OK << endl;
}

gives

root [8] .x macros/test.C
ShouldNotChange oh dear

??

cheers Chris Received on Tue Jul 26 2005 - 13:21:58 MEST

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:10 MET