Skip to content

Commit

Permalink
Fix SonarCloud warnings about "The "_t" and "_v" version of type trai…
Browse files Browse the repository at this point in the history
…ts should be used instead of "::type" and "::value" "
  • Loading branch information
JPeterMugaas committed Jun 30, 2024
1 parent 46ebcdf commit 69afbec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions efxc2Utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ namespace efxc2Utils {
template <class T2, class T1>
T2 cpp11_bit_cast(T1 t1) {
static_assert(sizeof(T1) == sizeof(T2), "Types must match sizes");
static_assert(std::is_pod<T1>::value, "Requires POD input");
static_assert(std::is_pod<T2>::value, "Requires POD output");
static_assert(std::is_pod<T1>(), "Requires POD input");
static_assert(std::is_pod<T2>(), "Requires POD output");

T2 t2;
std::memcpy(std::addressof(t2), std::addressof(t1), sizeof(T1));
Expand Down

0 comments on commit 69afbec

Please sign in to comment.