mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-14 15:04:09 +00:00
fix version check macro
This commit is contained in:
parent
b881750699
commit
12e12373d0
8 changed files with 43 additions and 64 deletions
|
@ -14,12 +14,13 @@
|
|||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <sprout/detail/predef.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
static void algorithm_bogo_sort_test() {
|
||||
using namespace sprout;
|
||||
#if !defined(__clang__) || !(__clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 4))
|
||||
#if SPROUT_CLANG_OR_LATER(3, 4, 0)
|
||||
{
|
||||
SPROUT_STATIC_CONSTEXPR auto arr1 = array<int, 5>{{5, 1, 4, 2, 3}};
|
||||
|
||||
|
|
|
@ -14,12 +14,13 @@
|
|||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <sprout/detail/predef.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
static void algorithm_bogo_sort_result_test() {
|
||||
using namespace sprout;
|
||||
#if !defined(__clang__) || !(__clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 4))
|
||||
#if SPROUT_CLANG_OR_LATER(3, 4, 0)
|
||||
{
|
||||
SPROUT_STATIC_CONSTEXPR auto arr1 = array<int, 5>{{5, 1, 4, 2, 3}};
|
||||
SPROUT_STATIC_CONSTEXPR auto g = sprout::random::default_random_engine(SPROUT_UNIQUE_SEED);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue