mirror of
https://github.com/darlinghq/darling-libcxx.git
synced 2024-12-14 07:18:38 +00:00
Fix unary_function inheritance assumption. Patch from STL@microsoft.com
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@274205 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
eb4c5e90a7
commit
16715b9a88
@ -41,8 +41,8 @@ int main()
|
||||
{
|
||||
typedef std::vector<bool, min_allocator<bool>> T;
|
||||
typedef std::hash<T> H;
|
||||
static_assert((std::is_base_of<std::unary_function<T, std::size_t>,
|
||||
H>::value), "");
|
||||
static_assert((std::is_same<H::argument_type, T>::value), "" );
|
||||
static_assert((std::is_same<H::result_type, std::size_t>::value), "" );
|
||||
bool ba[] = {true, false, true, true, false};
|
||||
T vb(std::begin(ba), std::end(ba));
|
||||
H h;
|
||||
|
Loading…
Reference in New Issue
Block a user