0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-15 20:31:16 +08:00

Made wrong_t<...> a true std::false_type again.

I am sure this would shoot me in the foot some day otherwise
This commit is contained in:
rbock 2014-02-11 10:17:02 +01:00
parent 7c928ae6d0
commit fb092583cc

View File

@ -32,15 +32,20 @@
namespace sqlpp
{
namespace vendor
{
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<class ...T>
struct wrong_t
template<typename... T>
struct wrong
{
static constexpr bool value = false;
using type = std::false_type;
};
}
template<typename... T>
using wrong_t = typename detail::wrong<T...>::type;
}
}
#endif