fix version check macro

This commit is contained in:
bolero-MURAKAMI 2014-01-20 13:09:54 +09:00
parent b881750699
commit 12e12373d0
8 changed files with 43 additions and 64 deletions

View file

@ -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}};

View file

@ -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);