forked from OSchip/llvm-project
Eliminate _LIBCPP_EQUAL_DELETE in favor of `=delete`.
All supported compilers have supported `=delete` as an extension in C++03 mode for many years at this point. Differential Revision: https://reviews.llvm.org/D109942
This commit is contained in:
parent
04ab6c85ef
commit
d7d7060127
|
@ -831,12 +831,6 @@ typedef unsigned int char32_t;
|
|||
# define _LIBCPP_DEFAULT = default;
|
||||
#endif
|
||||
|
||||
#ifdef _LIBCPP_CXX03_LANG
|
||||
# define _LIBCPP_EQUAL_DELETE
|
||||
#else
|
||||
# define _LIBCPP_EQUAL_DELETE = delete
|
||||
#endif
|
||||
|
||||
#ifdef __GNUC__
|
||||
# define _LIBCPP_NOALIAS __attribute__((__malloc__))
|
||||
#else
|
||||
|
|
|
@ -96,8 +96,8 @@ public:
|
|||
~lock_guard() _LIBCPP_THREAD_SAFETY_ANNOTATION(release_capability()) {__m_.unlock();}
|
||||
|
||||
private:
|
||||
lock_guard(lock_guard const&) _LIBCPP_EQUAL_DELETE;
|
||||
lock_guard& operator=(lock_guard const&) _LIBCPP_EQUAL_DELETE;
|
||||
lock_guard(lock_guard const&) = delete;
|
||||
lock_guard& operator=(lock_guard const&) = delete;
|
||||
};
|
||||
|
||||
template <class _Mutex>
|
||||
|
|
|
@ -738,9 +738,9 @@ public:
|
|||
}
|
||||
|
||||
private:
|
||||
~__tree_node_base() _LIBCPP_EQUAL_DELETE;
|
||||
__tree_node_base(__tree_node_base const&) _LIBCPP_EQUAL_DELETE;
|
||||
__tree_node_base& operator=(__tree_node_base const&) _LIBCPP_EQUAL_DELETE;
|
||||
~__tree_node_base() = delete;
|
||||
__tree_node_base(__tree_node_base const&) = delete;
|
||||
__tree_node_base& operator=(__tree_node_base const&) = delete;
|
||||
};
|
||||
|
||||
template <class _Tp, class _VoidPtr>
|
||||
|
@ -753,9 +753,9 @@ public:
|
|||
__node_value_type __value_;
|
||||
|
||||
private:
|
||||
~__tree_node() _LIBCPP_EQUAL_DELETE;
|
||||
__tree_node(__tree_node const&) _LIBCPP_EQUAL_DELETE;
|
||||
__tree_node& operator=(__tree_node const&) _LIBCPP_EQUAL_DELETE;
|
||||
~__tree_node() = delete;
|
||||
__tree_node(__tree_node const&) = delete;
|
||||
__tree_node& operator=(__tree_node const&) = delete;
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -747,10 +747,10 @@ public:
|
|||
}
|
||||
|
||||
private:
|
||||
__value_type() _LIBCPP_EQUAL_DELETE;
|
||||
~__value_type() _LIBCPP_EQUAL_DELETE;
|
||||
__value_type(const __value_type& __v) _LIBCPP_EQUAL_DELETE;
|
||||
__value_type(__value_type&& __v) _LIBCPP_EQUAL_DELETE;
|
||||
__value_type() = delete;
|
||||
~__value_type() = delete;
|
||||
__value_type(const __value_type&) = delete;
|
||||
__value_type(__value_type&&) = delete;
|
||||
};
|
||||
|
||||
#else
|
||||
|
|
Loading…
Reference in New Issue