Re: [Cppunit-devel] Macro for crossplatform development
Brought to you by:
blep
From: Baptiste L. <bl...@cl...> - 2001-06-10 11:59:55
|
----- Original Message ----- From: "Baptiste Lepilleur" <gai...@fr...> To: "Cpp Unit Develpment Mailing List" <cpp...@li...> Sent: Friday, June 08, 2001 6:56 PM Subject: [Cppunit-devel] Macro for crossplatform development > Steve talking about the macros got me thinking. The main reason why they > are an extension is that they use template member methods which is not very > portable. > > Thinking a bit more, I realised that the macro where the way to use the > best of your platform: if you have RTTI, then it will be used, if you don't > then it won't. You can get the best of your platform without giving up > portability. > > Here I propose a way to get ride of that template member method. This can't work since registerTests() is a static method (dohh!). I use a TestFactory instead that is passed to registerTests(). Work just the same otherwise. Baptiste. --- Baptiste Lepilleur <gai...@fr...> http://gaiacrtn.free.fr/index.html Author of The Text Reformatter, a tool for fanfiction readers and writers. Language: English, French (Well, I'm French). |