forked from OSchip/llvm-project
parent
0ddc14c256
commit
3bdbb10a48
|
@ -16,6 +16,7 @@
|
|||
#include <queue>
|
||||
#include <cassert>
|
||||
|
||||
#include "test_macros.h"
|
||||
#include "test_allocator.h"
|
||||
|
||||
template <class C>
|
||||
|
@ -41,11 +42,11 @@ struct test
|
|||
: base(comp, a) {}
|
||||
test(const value_compare& comp, const container_type& c,
|
||||
const test_allocator<int>& a) : base(comp, c, a) {}
|
||||
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
||||
#if TEST_STD_VER >= 11 // testing rvalue constructor
|
||||
test(const value_compare& comp, container_type&& c,
|
||||
const test_allocator<int>& a) : base(comp, std::move(c), a) {}
|
||||
test(test&& q, const test_allocator<int>& a) : base(std::move(q), a) {}
|
||||
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
||||
#endif
|
||||
test_allocator<int> get_allocator() {return c.get_allocator();}
|
||||
|
||||
using base::c;
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
#include <queue>
|
||||
#include <cassert>
|
||||
|
||||
#include "test_macros.h"
|
||||
#include "test_allocator.h"
|
||||
|
||||
template <class C>
|
||||
|
@ -41,11 +42,11 @@ struct test
|
|||
: base(comp, a) {}
|
||||
test(const value_compare& comp, const container_type& c,
|
||||
const test_allocator<int>& a) : base(comp, c, a) {}
|
||||
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
||||
#if TEST_STD_VER >= 11 // testing rvalue ctor
|
||||
test(const value_compare& comp, container_type&& c,
|
||||
const test_allocator<int>& a) : base(comp, std::move(c), a) {}
|
||||
test(test&& q, const test_allocator<int>& a) : base(std::move(q), a) {}
|
||||
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
||||
#endif
|
||||
test_allocator<int> get_allocator() {return c.get_allocator();}
|
||||
|
||||
using base::c;
|
||||
|
|
|
@ -209,7 +209,7 @@
|
|||
<tr><td><a href="http://cplusplus.github.io/LWG/lwg-defects.html#2520">2520</a></td><td>N4089 broke initializing <tt>unique_ptr<T[]></tt> from a <tt>nullptr</tt></td><td>Jacksonville</td><td></td></tr>
|
||||
<tr><td><a href="http://cplusplus.github.io/LWG/lwg-defects.html#2522">2522</a></td><td>[fund.ts.v2] Contradiction in <tt>set_default_resource</tt> specification</td><td>Jacksonville</td><td>Complete</td></tr>
|
||||
<tr><td><a href="http://cplusplus.github.io/LWG/lwg-defects.html#2523">2523</a></td><td><tt>std::promise</tt> synopsis shows two <tt>set_value_at_thread_exit()</tt>'s for no apparent reason</td><td>Jacksonville</td><td>Complete</td></tr>
|
||||
<tr><td><a href="http://cplusplus.github.io/LWG/lwg-defects.html#2537">2537</a></td><td>Constructors for <code>priority_queue</code> taking allocators should call <code>make_heap</code></td><td>Jacksonville</td><td></td></tr>
|
||||
<tr><td><a href="http://cplusplus.github.io/LWG/lwg-defects.html#2537">2537</a></td><td>Constructors for <code>priority_queue</code> taking allocators should call <code>make_heap</code></td><td>Jacksonville</td><td>Complete</td></tr>
|
||||
<tr><td><a href="http://cplusplus.github.io/LWG/lwg-defects.html#2539">2539</a></td><td>[fund.ts.v2] <tt>invocation_trait</tt> definition definition doesn't work for surrogate call functions</td><td>Jacksonville</td><td></td></tr>
|
||||
<tr><td><a href="http://cplusplus.github.io/LWG/lwg-defects.html#2545">2545</a></td><td>Simplify wording for <tt>bind</tt> without explicitly specified return type</td><td>Jacksonville</td><td></td></tr>
|
||||
<tr><td><a href="http://cplusplus.github.io/LWG/lwg-defects.html#2557">2557</a></td><td>Logical operator traits are broken in the zero-argument case</td><td>Jacksonville</td><td>Complete</td></tr>
|
||||
|
|
Loading…
Reference in New Issue