Explicit template instanciation to please gcc2.

Makes CPPUNIT_ASSERT_EQUAL useable.
This commit is contained in:
Adrien Destugues 2014-06-03 15:27:53 +02:00
parent 68c13f94fb
commit 002f37b0cc

View File

@ -173,7 +173,7 @@ namespace CppUnit {
* removed by specializing the CppUnit::assertion_traits.
*/
#define CPPUNIT_ASSERT_EQUAL(expected,actual) \
( ::CppUnit::TestAssert::assertEquals( (expected), \
( ::CppUnit::TestAssert::assertEquals<typeof(expected)>( (expected), \
(actual), \
CPPUNIT_SOURCELINE() ) )
@ -196,7 +196,7 @@ namespace CppUnit {
* removed by specializing the CppUnit::assertion_traits.
*/
#define CPPUNIT_ASSERT_EQUAL_MESSAGE(message,expected,actual) \
( ::CppUnit::TestAssert::assertEquals( (expected), \
( ::CppUnit::TestAssert::assertEquals<typeof(expected)>( (expected), \
(actual), \
CPPUNIT_SOURCELINE(), \
(message) ) )