From 69afbec0c84c6593674ff0b534cf95923cedd1e6 Mon Sep 17 00:00:00 2001 From: "MARINA\\jpmug" Date: Sun, 30 Jun 2024 19:44:12 -0400 Subject: [PATCH] Fix SonarCloud warnings about "The "_t" and "_v" version of type traits should be used instead of "::type" and "::value" " --- CMakeLists.txt | 2 +- efxc2Utils.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f72b56d..26a97d8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,7 +10,7 @@ cmake_minimum_required (VERSION 3.21) -set(EFXC2_VERSION 0.0.13.264) +set(EFXC2_VERSION 0.0.13.265) project (efxc2 VERSION ${EFXC2_VERSION} DESCRIPTION "Enhanced fxc2" HOMEPAGE_URL "https://github.com/JPeterMugaas/efxc2" diff --git a/efxc2Utils.h b/efxc2Utils.h index 1a775a7..eea335f 100644 --- a/efxc2Utils.h +++ b/efxc2Utils.h @@ -28,8 +28,8 @@ namespace efxc2Utils { template T2 cpp11_bit_cast(T1 t1) { static_assert(sizeof(T1) == sizeof(T2), "Types must match sizes"); - static_assert(std::is_pod::value, "Requires POD input"); - static_assert(std::is_pod::value, "Requires POD output"); + static_assert(std::is_pod(), "Requires POD input"); + static_assert(std::is_pod(), "Requires POD output"); T2 t2; std::memcpy(std::addressof(t2), std::addressof(t1), sizeof(T1));