Check if it is possible to build project with C++20 on current CI
This commit is contained in:
parent
70969186f6
commit
9703b787eb
@ -1,6 +1,6 @@
|
|||||||
cmake_minimum_required(VERSION 3.18)
|
cmake_minimum_required(VERSION 3.18)
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
set(CMAKE_CXX_STANDARD 20)
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||||
|
|
||||||
|
@ -90,4 +90,5 @@ no_warning(float-conversion)
|
|||||||
no_warning(sign-conversion)
|
no_warning(sign-conversion)
|
||||||
no_warning(shorten-64-to-32)
|
no_warning(shorten-64-to-32)
|
||||||
no_warning(padded)
|
no_warning(padded)
|
||||||
no_warning(missing-noreturn)
|
no_warning(missing-noreturn)
|
||||||
|
no_warning(deprecated-comma-subscript)
|
||||||
|
@ -163,7 +163,7 @@ struct enable_if_type
|
|||||||
template <typename F, typename V, typename Enable = void>
|
template <typename F, typename V, typename Enable = void>
|
||||||
struct result_of_unary_visit
|
struct result_of_unary_visit
|
||||||
{
|
{
|
||||||
using type = typename std::result_of<F(V&)>::type;
|
using type = std::invoke_result_t<F, V&>;
|
||||||
};
|
};
|
||||||
|
|
||||||
template <typename F, typename V>
|
template <typename F, typename V>
|
||||||
@ -175,7 +175,7 @@ struct result_of_unary_visit<F, V, typename enable_if_type<typename F::result_ty
|
|||||||
template <typename F, typename V, typename Enable = void>
|
template <typename F, typename V, typename Enable = void>
|
||||||
struct result_of_binary_visit
|
struct result_of_binary_visit
|
||||||
{
|
{
|
||||||
using type = typename std::result_of<F(V&, V&)>::type;
|
using type = std::invoke_result_t<F, V&, V&>;
|
||||||
};
|
};
|
||||||
|
|
||||||
template <typename F, typename V>
|
template <typename F, typename V>
|
||||||
|
Loading…
Reference in New Issue
Block a user