diff options
Diffstat (limited to 'libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/test_allocator.h')
| -rw-r--r-- | libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/test_allocator.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/test_allocator.h b/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/test_allocator.h index 1c0f163d053..c5da7e6390d 100644 --- a/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/test_allocator.h +++ b/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/test_allocator.h @@ -59,10 +59,10 @@ public: {return UINT_MAX / sizeof(T);} void construct(pointer p, const T& val) {::new(p) T(val);} -#ifdef _LIBCPP_MOVE +#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES void construct(pointer p, T&& val) {::new(p) T(std::move(val));} -#endif // _LIBCPP_MOVE +#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES void destroy(pointer p) {p->~T();} friend bool operator==(const test_allocator& x, const test_allocator& y) |

