Verified Commit 7a3b2273 authored by Marc Vef's avatar Marc Vef
Browse files

c++17: Tests fix

parent ec85e00c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -83,6 +83,8 @@ target_link_libraries(gkfs.io
    CLI11::CLI11
    nlohmann_json::nlohmann_json
    fmt::fmt
    # open issue for std::filesystem https://gitlab.kitware.com/cmake/cmake/-/issues/17834
    stdc++fs
    )

if(GKFS_INSTALL_TESTS)
+5 −5
Original line number Diff line number Diff line
@@ -16,18 +16,18 @@

#include <nlohmann/json.hpp>
#include <fmt/format.h>
#include <dirent.h> // required by DIR*

#include <boost/preprocessor.hpp>

extern "C" {
#include <dirent.h> // required by DIR*
}

namespace refl {
namespace detail {

template <typename Class, typename T>
struct property_impl {
    constexpr property_impl(T Class::*aMember, 
                            const char* aType, 
    constexpr property_impl(T Class::*aMember, const char* aType,
                            const char* aName) : 
        member{aMember}, 
        type{aType}, 
+8 −3
Original line number Diff line number Diff line
@@ -15,6 +15,11 @@
#define GKFS_IO_SERIALIZE_HPP

#include <nlohmann/json.hpp>
#include <reflection.hpp>

extern "C" {
#include <sys/stat.h>
}

template <typename T>
nlohmann::json