diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2014-08-06 03:12:32 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2014-08-25 17:58:12 -0700 |
commit | 54df2e07fc4cc0bd8557e4152be15353ecf53d0d (patch) | |
tree | e6233f256049c69e4d15120c811557e652002db6 | |
parent | 288b91bc5909208e5b5e69511f0169c3126c7b78 (diff) | |
download | tmwa-54df2e07fc4cc0bd8557e4152be15353ecf53d0d.tar.gz tmwa-54df2e07fc4cc0bd8557e4152be15353ecf53d0d.tar.bz2 tmwa-54df2e07fc4cc0bd8557e4152be15353ecf53d0d.tar.xz tmwa-54df2e07fc4cc0bd8557e4152be15353ecf53d0d.zip |
Why must these things be so hard to test?
-rw-r--r-- | src/sexpr/variant.tcc | 7 |
1 files changed, 5 insertions, 2 deletions
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<static_cast<size_t>(-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<D>::value, "first element is nothrow constructible"); #endif data.template construct<D>(); |