From 54df2e07fc4cc0bd8557e4152be15353ecf53d0d Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Wed, 6 Aug 2014 03:12:32 -0700 Subject: Why must these things be so hard to test? --- src/sexpr/variant.tcc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/sexpr') diff --git a/src/sexpr/variant.tcc b/src/sexpr/variant.tcc index 69bf191..a2ab7c0 100644 --- a/src/sexpr/variant.tcc +++ b/src/sexpr/variant.tcc @@ -34,7 +34,7 @@ namespace sexpr } template<> constexpr - size_t not_negative_one<-1>() = delete; + size_t not_negative_one(-1)>() = delete; class VariantFriend { @@ -120,7 +120,10 @@ namespace sexpr } catch (...) { -#if GCC_PATCH != 40702 // apparent compiler bug, not reduced +#if GCC != 407 // apparent compiler bug, not reduced + // 4.7.2 from wheezy is bad + // 4.7.3 from jessie is good + // 4.7.3 from ubuntu-toolchain-test is bad static_assert(std::is_nothrow_constructible::value, "first element is nothrow constructible"); #endif data.template construct(); -- cgit v1.2.3-60-g2f50