mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 10:32:57 +01:00
fix(CppUnit): enable_if disarm numeric notEqualsMessage
This commit is contained in:
parent
9740190551
commit
a17a7bf027
@ -155,7 +155,9 @@ protected:
|
||||
long lineNumber = CppUnitException::CPPUNIT_UNKNOWNLINENUMBER,
|
||||
const std::string& fileName = CppUnitException::CPPUNIT_UNKNOWNFILENAME);
|
||||
|
||||
template <typename T1, typename T2>
|
||||
template <typename T1, typename T2,
|
||||
typename = typename std::enable_if<std::is_arithmetic<T1>::value, T1>::type,
|
||||
typename = typename std::enable_if<std::is_arithmetic<T2>::value, T2>::type>
|
||||
std::string notEqualsMessage(T1 expected, T2 actual)
|
||||
{
|
||||
return "expected: " + std::to_string(expected) + " but was: " + std::to_string(actual);
|
||||
|
Loading…
Reference in New Issue
Block a user