diff options
| author | Eric Fiselier <eric@efcs.ca> | 2019-08-03 23:54:29 +0000 |
|---|---|---|
| committer | Eric Fiselier <eric@efcs.ca> | 2019-08-03 23:54:29 +0000 |
| commit | fcd549a7d8284a8e7c763fee3da2206acd8cdc4f (patch) | |
| tree | 59861c49742757d9a123ef9322e56c5890852149 /libcxx/include/__mutex_base | |
| parent | 44b16bd4a5b20ce8b4e9ef56836123a2038f3670 (diff) | |
| download | bcm5719-llvm-fcd549a7d8284a8e7c763fee3da2206acd8cdc4f.tar.gz bcm5719-llvm-fcd549a7d8284a8e7c763fee3da2206acd8cdc4f.zip | |
Suppress -Wctad-maybe-unsupported on types w/o deduction guides.
There are a handful of standard library types that are intended
to support CTAD but don't need any explicit deduction guides to
do so.
This patch adds a dummy deduction guide to those types to suppress
-Wctad-maybe-unsupported (which gets emitted in user code).
llvm-svn: 367770
Diffstat (limited to 'libcxx/include/__mutex_base')
| -rw-r--r-- | libcxx/include/__mutex_base | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libcxx/include/__mutex_base b/libcxx/include/__mutex_base index f828beaf780..6361c2088b7 100644 --- a/libcxx/include/__mutex_base +++ b/libcxx/include/__mutex_base @@ -107,6 +107,8 @@ private: lock_guard(lock_guard const&) _LIBCPP_EQUAL_DELETE; lock_guard& operator=(lock_guard const&) _LIBCPP_EQUAL_DELETE; }; +_LIBCPP_CTAD_SUPPORTED_FOR_TYPE(lock_guard); + template <class _Mutex> class _LIBCPP_TEMPLATE_VIS unique_lock @@ -205,6 +207,7 @@ public: _LIBCPP_INLINE_VISIBILITY mutex_type* mutex() const _NOEXCEPT {return __m_;} }; +_LIBCPP_CTAD_SUPPORTED_FOR_TYPE(unique_lock); template <class _Mutex> void |

