build: Fix nothrow include. (#749)

This commit is contained in:
Matthew Parkinson
2025-02-14 12:50:18 +00:00
committed by GitHub
parent 0cd9ccf170
commit 6d50141e35
2 changed files with 6 additions and 0 deletions

View File

@@ -33,6 +33,10 @@ jobs:
extra-cmake-flags: [ "" ]
# Modify the complete matrix
include:
- os: "ubuntu-22.04"
variant: "C++17"
build-type: "Debug"
extra-cmake-flags: "-DSNMALLOC_USE_CXX17=ON"
- os: "ubuntu-20.04"
variant: "C++17"
build-type: "Debug"

View File

@@ -1,5 +1,7 @@
#include "snmalloc/snmalloc.h"
#include <new>
#ifdef _WIN32
# ifdef __clang__
# define EXCEPTSPEC noexcept