[Cppunit-devel] assertEquals and internal compiler error...
Brought to you by:
blep
From: Baptiste L. <bl...@cl...> - 2001-06-08 19:43:58
|
Well, I finally got around that problem. As I said in a previous mail, cppunittest example failed to compile with the new assertEquals template member methods (got a nice compiler internal error) on VC++ 6.0 (no service pack). I changed TestAssert from class to namespace, and removed the TestAssert from TestCase inheritance. It compile well and works just fine. Does anyone see any problems with that ? Known impact is: for users of cppunit 1.5.5, if they don't enable NAKED_ASSERT, with TestCase inheritance of TestAssert, they won't get any compile time error. All the assert would work but no line number and source file would be reported. This is not really a problem for me since I consider it to be a rather dangerous behavior: the user should either enabled NAKED_ASSERT or use the new macros. 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). |