diff options
author | Eric Fiselier <eric@efcs.ca> | 2017-04-12 22:43:49 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2017-04-12 22:43:49 +0000 |
commit | 39683f13779361f4f35ef71aa18e18bcfc0e799d (patch) | |
tree | ab6e4c720463fc9995d1809f899c405baa7d27fe /test/support | |
parent | 6d5fdc110f42a3d43029963d3fdb30714f79d074 (diff) |
Fix incorrectly qualified return type from unique_ptr::get_deleter().
For reference deleter types the const qualifier on the return type
of get_deleter() should be ignored, and a non-const deleter should
be returned.
This patch fixes a bug where "const deleter_type&" is incorrectly
formed.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@300121 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/support')
-rw-r--r-- | test/support/test_macros.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/support/test_macros.h b/test/support/test_macros.h index 3cde8cc6c..bb3bea7a8 100644 --- a/test/support/test_macros.h +++ b/test/support/test_macros.h @@ -184,7 +184,7 @@ struct is_same<T, T> { enum {value = 1}; }; } // namespace test_macros_detail #define ASSERT_SAME_TYPE(...) \ - static_assert(test_macros_detail::is_same<__VA_ARGS__>::value, \ + static_assert((test_macros_detail::is_same<__VA_ARGS__>::value), \ "Types differ uexpectedly") #ifndef TEST_HAS_NO_EXCEPTIONS |