mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-24 05:25:40 +02:00
Upgrade to C++17
This commit is contained in:
@@ -83,12 +83,12 @@ namespace {
|
||||
|
||||
} // end unnamed namespace
|
||||
|
||||
static_assert( std::is_constructible<Catch::Detail::unique_ptr<base>,
|
||||
Catch::Detail::unique_ptr<derived>>::value, "Upcasting is supported");
|
||||
static_assert(!std::is_constructible<Catch::Detail::unique_ptr<derived>,
|
||||
Catch::Detail::unique_ptr<base>>::value, "Downcasting is not supported");
|
||||
static_assert(!std::is_constructible<Catch::Detail::unique_ptr<base>,
|
||||
Catch::Detail::unique_ptr<unrelated>>::value, "Cannot just convert one ptr type to another");
|
||||
static_assert( std::is_constructible_v<Catch::Detail::unique_ptr<base>,
|
||||
Catch::Detail::unique_ptr<derived>>, "Upcasting is supported");
|
||||
static_assert(!std::is_constructible_v<Catch::Detail::unique_ptr<derived>,
|
||||
Catch::Detail::unique_ptr<base>>, "Downcasting is not supported");
|
||||
static_assert(!std::is_constructible_v<Catch::Detail::unique_ptr<base>,
|
||||
Catch::Detail::unique_ptr<unrelated>>, "Cannot just convert one ptr type to another");
|
||||
|
||||
TEST_CASE("Upcasting special member functions", "[internals][unique-ptr]") {
|
||||
using Catch::Detail::unique_ptr;
|
||||
|
Reference in New Issue
Block a user