mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-06-25 01:11:35 +02:00
Polyfills: test remove_cv
This commit is contained in:
@ -212,6 +212,14 @@ TEST_CASE("Polyfills/type_traits") {
|
||||
CHECK(is_enum<double>::value == false);
|
||||
}
|
||||
|
||||
SECTION("remove_cv") {
|
||||
CHECK(is_same<remove_cv_t<const int>, int>::value);
|
||||
CHECK(is_same<remove_cv_t<volatile int>, int>::value);
|
||||
CHECK(is_same<remove_cv_t<const volatile int>, int>::value);
|
||||
CHECK(is_same<remove_cv_t<int>, int>::value);
|
||||
CHECK(is_same<remove_cv_t<decltype("toto")>, decltype("toto")>::value);
|
||||
}
|
||||
|
||||
SECTION("decay") {
|
||||
CHECK(is_same<decay_t<int>, int>::value);
|
||||
CHECK(is_same<decay_t<int&>, int>::value);
|
||||
|
Reference in New Issue
Block a user