From d97c08ca163a6d5a69d898f8ab70372b37561c10 Mon Sep 17 00:00:00 2001 From: Brett Date: Fri, 1 Mar 2024 01:41:48 -0500 Subject: [PATCH] no love --- CMakeLists.txt | 2 +- tests/src/tests.cpp | 68 ++++++++++++++++++++++----------------------- 2 files changed, 35 insertions(+), 35 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5f0f936..d4fa0f7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,7 +9,7 @@ if(!MSVC) add_compile_options(-march=native) endif() -set(CMAKE_CXX_STANDARD_REQUIRED ON) +#set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_STANDARD 17) add_subdirectory(libs/BLT) diff --git a/tests/src/tests.cpp b/tests/src/tests.cpp index 5ab7c62..4c6632b 100644 --- a/tests/src/tests.cpp +++ b/tests/src/tests.cpp @@ -210,40 +210,40 @@ namespace fb }; - template... operators> - inline constexpr auto max_args() - { - return std::max({operators.argCount()...}); - } - - template... operators> - inline constexpr auto enum_max() - { - return std::max({static_cast(operators.type())...}); - } - - template... operators> - struct gp_program_container_t - { - constexpr static inline auto MAX_OPERATORS = enum_max(); - constexpr static inline auto MAX_ARGS = max_args(); - std::array, MAX_ARGS>, MAX_OPERATORS> argument_constraints; - std::array argument_count; - std::array functions; - }; - - template... operators> - inline auto make_gp_program() - { - gp_program_container_t program; - for (const operator_t& op : {operators...}) - { - auto index = static_cast(op.type()); - for (const auto& v : blt::enumerate(op.argMap())) - program.argument_constraints[index][v.first] = v.second; - } - return program; - } +// template... operators> +// inline constexpr auto max_args() +// { +// return std::max({operators.argCount()...}); +// } +// +// template... operators> +// inline constexpr auto enum_max() +// { +// return std::max({static_cast(operators.type())...}); +// } +// +// template... operators> +// struct gp_program_container_t +// { +// constexpr static inline auto MAX_OPERATORS = enum_max(); +// constexpr static inline auto MAX_ARGS = max_args(); +// std::array, MAX_ARGS>, MAX_OPERATORS> argument_constraints; +// std::array argument_count; +// std::array functions; +// }; +// +// template... operators> +// inline auto make_gp_program() +// { +// gp_program_container_t program; +// for (const operator_t& op : {operators...}) +// { +// auto index = static_cast(op.type()); +// for (const auto& v : blt::enumerate(op.argMap())) +// program.argument_constraints[index][v.first] = v.second; +// } +// return program; +// } /* * Functions