mirror of
https://github.com/rbock/sqlpp11.git
synced 2024-11-16 04:47:18 +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:
parent
7c928ae6d0
commit
fb092583cc
21
include/sqlpp11/vendor/wrong.h
vendored
21
include/sqlpp11/vendor/wrong.h
vendored
@ -33,14 +33,19 @@ namespace sqlpp
|
|||||||
{
|
{
|
||||||
namespace vendor
|
namespace vendor
|
||||||
{
|
{
|
||||||
// A template that always returns false
|
namespace detail
|
||||||
// To be used with static assert, for instance, to ensure it
|
{
|
||||||
// fires only when the template is instantiated.
|
// A template that always returns false
|
||||||
template<class ...T>
|
// To be used with static assert, for instance, to ensure it
|
||||||
struct wrong_t
|
// fires only when the template is instantiated.
|
||||||
{
|
template<typename... T>
|
||||||
static constexpr bool value = false;
|
struct wrong
|
||||||
};
|
{
|
||||||
|
using type = std::false_type;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
template<typename... T>
|
||||||
|
using wrong_t = typename detail::wrong<T...>::type;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user