From fb092583cc20719cb92656991353ce573e120abc Mon Sep 17 00:00:00 2001 From: rbock Date: Tue, 11 Feb 2014 10:17:02 +0100 Subject: [PATCH] Made wrong_t<...> a true std::false_type again. I am sure this would shoot me in the foot some day otherwise --- include/sqlpp11/vendor/wrong.h | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/include/sqlpp11/vendor/wrong.h b/include/sqlpp11/vendor/wrong.h index 5694fd6a..896f1e46 100644 --- a/include/sqlpp11/vendor/wrong.h +++ b/include/sqlpp11/vendor/wrong.h @@ -33,14 +33,19 @@ namespace sqlpp { namespace vendor { - // A template that always returns false - // To be used with static assert, for instance, to ensure it - // fires only when the template is instantiated. - template - struct wrong_t - { - static constexpr bool value = false; - }; + namespace detail + { + // A template that always returns false + // To be used with static assert, for instance, to ensure it + // fires only when the template is instantiated. + template + struct wrong + { + using type = std::false_type; + }; + } + template + using wrong_t = typename detail::wrong::type; } } #endif