Explicit template instanciation to please gcc2.
Makes CPPUNIT_ASSERT_EQUAL useable.
This commit is contained in:
@@ -173,7 +173,7 @@ namespace CppUnit {
|
|||||||
* removed by specializing the CppUnit::assertion_traits.
|
* removed by specializing the CppUnit::assertion_traits.
|
||||||
*/
|
*/
|
||||||
#define CPPUNIT_ASSERT_EQUAL(expected,actual) \
|
#define CPPUNIT_ASSERT_EQUAL(expected,actual) \
|
||||||
( ::CppUnit::TestAssert::assertEquals( (expected), \
|
( ::CppUnit::TestAssert::assertEquals<typeof(expected)>( (expected), \
|
||||||
(actual), \
|
(actual), \
|
||||||
CPPUNIT_SOURCELINE() ) )
|
CPPUNIT_SOURCELINE() ) )
|
||||||
|
|
||||||
@@ -196,7 +196,7 @@ namespace CppUnit {
|
|||||||
* removed by specializing the CppUnit::assertion_traits.
|
* removed by specializing the CppUnit::assertion_traits.
|
||||||
*/
|
*/
|
||||||
#define CPPUNIT_ASSERT_EQUAL_MESSAGE(message,expected,actual) \
|
#define CPPUNIT_ASSERT_EQUAL_MESSAGE(message,expected,actual) \
|
||||||
( ::CppUnit::TestAssert::assertEquals( (expected), \
|
( ::CppUnit::TestAssert::assertEquals<typeof(expected)>( (expected), \
|
||||||
(actual), \
|
(actual), \
|
||||||
CPPUNIT_SOURCELINE(), \
|
CPPUNIT_SOURCELINE(), \
|
||||||
(message) ) )
|
(message) ) )
|
||||||
|
|||||||
Reference in New Issue
Block a user