Skip to content

Commit

Permalink
fix build on GCC 14
Browse files Browse the repository at this point in the history
TODO: update CI to ubuntu 24.04 so we can use GCC 14 in CI
  • Loading branch information
braxtons12 committed Jan 18, 2025
1 parent 1501a1b commit d5a2d42
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.20)
project(hyperion_mpl LANGUAGES CXX VERSION 0.9.1)
project(hyperion_mpl LANGUAGES CXX VERSION 0.9.2)

include(CTest)

Expand Down
12 changes: 6 additions & 6 deletions include/hyperion/mpl/metapredicates.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/// @file metapredicates.h
/// @author Braxton Salyer <[email protected]>
/// @brief Callable definitions for common metaprogramming predicates
/// @version 0.1.1
/// @version 0.1.2
/// @date 2025-01-18
///
/// MIT License
Expand Down Expand Up @@ -1872,7 +1872,7 @@ namespace hyperion::mpl::_test::metapredicates {
"hyperion::mpl::noexcept_copy_constructible predicate test case 3 (failing)");
static_assert(
// MSVC and GCC override our `noexcept(false) above`
HYPERION_PLATFORM_COMPILER_IS_GCC ?
HYPERION_PLATFORM_COMPILER_IS_GCC && __GNUC__ < 14 ?
static_cast<bool>(decltype_<trivially_copy_constructible>().satisfies(
mpl::noexcept_copy_constructible)) :
not decltype_<trivially_copy_constructible>().satisfies(
Expand Down Expand Up @@ -1938,7 +1938,7 @@ namespace hyperion::mpl::_test::metapredicates {
"hyperion::mpl::noexcept_move_constructible predicate test case 3 (failing)");
static_assert(
// MSVC and GCC override our `noexcept(false) above`
HYPERION_PLATFORM_COMPILER_IS_GCC ?
HYPERION_PLATFORM_COMPILER_IS_GCC && __GNUC__ < 14 ?
static_cast<bool>(decltype_<trivially_move_constructible>().satisfies(
mpl::noexcept_move_constructible)) :
not decltype_<trivially_move_constructible>().satisfies(
Expand Down Expand Up @@ -2002,7 +2002,7 @@ namespace hyperion::mpl::_test::metapredicates {
"hyperion::mpl::noexcept_copy_assignable predicate test case 3 (failing)");
static_assert(
// GCC overrides our `noexcept(false) above`
HYPERION_PLATFORM_COMPILER_IS_GCC ?
HYPERION_PLATFORM_COMPILER_IS_GCC && __GNUC__ < 14 ?
decltype_<trivially_copy_assignable>().satisfies(mpl::noexcept_copy_assignable) :
static_cast<bool>(not decltype_<trivially_copy_assignable>().satisfies(
mpl::noexcept_copy_assignable)),
Expand Down Expand Up @@ -2064,7 +2064,7 @@ namespace hyperion::mpl::_test::metapredicates {
"hyperion::mpl::noexcept_move_assignable predicate test case 3 (failing)");
static_assert(
// GCC overrides our `noexcept(false) above`
HYPERION_PLATFORM_COMPILER_IS_GCC ?
HYPERION_PLATFORM_COMPILER_IS_GCC && __GNUC__ < 14 ?
decltype_<trivially_move_assignable>().satisfies(mpl::noexcept_move_assignable) :
static_cast<bool>(not decltype_<trivially_move_assignable>().satisfies(
mpl::noexcept_move_assignable)),
Expand Down Expand Up @@ -2123,7 +2123,7 @@ namespace hyperion::mpl::_test::metapredicates {
"hyperion::mpl::noexcept_destructible predicate test case 3 (failing)");
static_assert(
// MSVC and GCC override our `noexcept(false) above`
HYPERION_PLATFORM_COMPILER_IS_GCC ?
HYPERION_PLATFORM_COMPILER_IS_GCC && __GNUC__ < 14 ?
static_cast<bool>(
decltype_<trivially_destructible>().satisfies(mpl::noexcept_destructible)) :
not decltype_<trivially_destructible>().satisfies(mpl::noexcept_destructible),
Expand Down
2 changes: 1 addition & 1 deletion xmake.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---@diagnostic disable: undefined-global,undefined-field
set_project("hyperion_mpl")
set_version("0.9.1")
set_version("0.9.2")

set_xmakever("2.8.7")

Expand Down

0 comments on commit d5a2d42

Please sign in to comment.