diff --git a/.github/workflows/cmake-clang-windows.yml b/.github/workflows/cmake-clang-windows.yml index 4aa23bf..00ec7da 100644 --- a/.github/workflows/cmake-clang-windows.yml +++ b/.github/workflows/cmake-clang-windows.yml @@ -25,11 +25,11 @@ jobs: - name: Configure CMake # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type - run: cmake -B ${{github.workspace}}/build -T ClangCL -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} + run: cmake -B ${{github.workspace}}/build -G "Visual Studio 17 2022" -T ClangCL -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} - name: Build # Build your program with the given configuration - run: cmake --build ${{github.workspace}}/build -T ClangCL --config ${{env.BUILD_TYPE}} + run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} - name: Test working-directory: ${{github.workspace}}/build diff --git a/.github/workflows/cmake-gcc-ubuntu.yml b/.github/workflows/cmake-gcc-ubuntu.yml index 670ef55..3579f3f 100644 --- a/.github/workflows/cmake-gcc-ubuntu.yml +++ b/.github/workflows/cmake-gcc-ubuntu.yml @@ -25,7 +25,7 @@ jobs: - name: Configure CMake # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type - run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} + run: cmake -B ${{github.workspace}}/build -DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILER=gcc -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} - name: Build # Build your program with the given configuration diff --git a/include/fox/serialize.hpp b/include/fox/serialize.hpp index da38318..bb3ed03 100644 --- a/include/fox/serialize.hpp +++ b/include/fox/serialize.hpp @@ -14,7 +14,6 @@ #include #include #include -#include #include #include @@ -784,9 +783,8 @@ namespace fox::serialize { if (size != std::size(value)) { - throw std::out_of_range(std::format("Trying to read ranges ({} elements) of a different size than the array ({} elements).", - size, std::size(value)) - ); + throw std::out_of_range("Trying to read ranges (" + std::to_string(size) + " elements) of a different size than the array (" + + std::to_string(std::size(value)) + " elements)."); } // Memcpy array diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index ce7422b..6bb20ad 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -30,7 +30,7 @@ add_executable( if(MSVC) target_compile_options( - serialize-test + serialize-test PRIVATE /W4 PRIVATE /MP PRIVATE /arch:AVX2