You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm converting a test setup using Catch to doctest. Most of the process was super easy -- just a global find and replace for catch --> doctest and SECTION -> SUBCASE. But, I'm getting a couple errors.
I'm using a check like:
REQUIRE(ptr == nullptr);
and getting an error like:
/home/tbent/projects/taskloaf/taskloaf/lib/doctest.h:267:63: error: ambiguous overload for ‘operator<<’ (operand types are ‘std::ostream {aka std::basic_ostream<char>}’ and ‘std::nullptr_t’)
static const bool value = sizeof(testStreamable(s << t)) == sizeof(yes);
It looks like this was an issue in Catch previously: catchorg/Catch2#80
and for me it's solved by adding this:
Howdy,
I'm converting a test setup using Catch to doctest. Most of the process was super easy -- just a global find and replace for catch --> doctest and SECTION -> SUBCASE. But, I'm getting a couple errors.
and getting an error like:
It looks like this was an issue in Catch previously: catchorg/Catch2#80
and for me it's solved by adding this:
produces
warnings. While, this is less of a problem than #1, it's always nice to get rid of warnings!
Cheers!
The text was updated successfully, but these errors were encountered: