mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-19 10:53:55 +00:00
Try to appease win7 bots after r278532 by cleaning up type trait
The HasGetNext type trait was cluttered with a few things it didn't need. Try to clean it up, hoping to fix windows bots: http://lab.llvm.org:8011/builders/lld-x86_64-win7/builds/38063 I may just have to delete the trait... git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@278537 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fa2e422f92
commit
a33b92eb82
@ -96,14 +96,13 @@ template <class TraitsT, class NodeT> struct HasGetNext {
|
|||||||
typedef char No[2];
|
typedef char No[2];
|
||||||
template <size_t N> struct SFINAE {};
|
template <size_t N> struct SFINAE {};
|
||||||
|
|
||||||
template <class U, class V>
|
template <class U>
|
||||||
static Yes &hasGetNext(
|
static Yes &hasGetNext(
|
||||||
SFINAE<sizeof(static_cast<NodeT *>(make<U>().getNext(&make<NodeT>())))>
|
SFINAE<sizeof(static_cast<NodeT *>(make<U>().getNext(&make<NodeT>())))>
|
||||||
* = 0);
|
* = 0);
|
||||||
template <class U, class V> static No &hasGetNext(...);
|
template <class U> static No &hasGetNext(...);
|
||||||
|
|
||||||
static const bool value =
|
static const bool value = sizeof(hasGetNext<TraitsT>(nullptr)) == sizeof(Yes);
|
||||||
sizeof(hasGetNext<TraitsT, NodeT>(nullptr)) == sizeof(Yes);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // end namespace ilist_detail
|
} // end namespace ilist_detail
|
||||||
|
Loading…
x
Reference in New Issue
Block a user