[*] why the hell
This commit is contained in:
parent
d29db2200c
commit
9a28cd6862
@ -11,7 +11,7 @@ namespace __audetail
|
||||
template <class T>
|
||||
struct AuHasSwap
|
||||
{
|
||||
template <class C> static constexpr AuTrueType Test(decltype(static_cast<void(C:: *)(C &) const>(&C::Swap)));
|
||||
template <class C> static constexpr AuTrueType Test(decltype(static_cast<void(C:: *)(C &)>(&C::Swap)));
|
||||
template <class C> static constexpr AuFalseType Test(...);
|
||||
using type = decltype(Test<T>(0));
|
||||
};
|
||||
@ -19,7 +19,7 @@ namespace __audetail
|
||||
template <class T>
|
||||
struct AuHasswap
|
||||
{
|
||||
template <class C> static constexpr AuTrueType Test(decltype(static_cast<void(C:: *)(C &) const>(&C::swap)));
|
||||
template <class C> static constexpr AuTrueType Test(decltype(static_cast<void(C:: *)(C &)>(&C::swap)));
|
||||
template <class C> static constexpr AuFalseType Test(...);
|
||||
using type = decltype(Test<T>(0));
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user