Build fix on gcc 12

This commit is contained in:
King_DuckZ 2022-05-19 14:39:30 +02:00
parent 678624a75d
commit e55390338a

View file

@ -18,6 +18,7 @@
#pragma once
#include "../vm.hpp"
#include "module_and_name.hpp"
#include <string_view>
#include <vector>
#include <tuple>
@ -46,10 +47,9 @@ namespace wren {
#if __cpp_concepts >= 201907
template <typename T>
concept ConstCharTuple = requires {
std::same_as<std::remove_cv_t<T>, Handle> or
std::same_as<std::remove_cv_t<T>, ModuleAndName>;
};
concept ConstCharTuple =
std::same_as<std::decay_t<T>, Handle> or
std::same_as<std::decay_t<T>, ModuleAndName>;
#endif
#if __cpp_concepts >= 201907