mirror of
https://github.com/boostorg/circular_buffer.git
synced 2026-01-19 04:02:15 +00:00
Update defaulted operator style
This commit is contained in:
@@ -259,7 +259,10 @@ struct iterator
|
||||
#endif // #if BOOST_CB_ENABLE_DEBUG
|
||||
|
||||
//! Assign operator.
|
||||
BOOST_DEFAULTED_FUNCTION(iterator& operator = (const iterator& it), {
|
||||
#if !defined(BOOST_NO_CXX11_DEFAULTED_FUNCTIONS)
|
||||
iterator& operator=(const iterator&) = default;
|
||||
#else
|
||||
iterator& operator=(const iterator& it) {
|
||||
if (this == &it)
|
||||
return *this;
|
||||
#if BOOST_CB_ENABLE_DEBUG
|
||||
@@ -268,7 +271,8 @@ struct iterator
|
||||
m_buff = it.m_buff;
|
||||
m_it = it.m_it;
|
||||
return *this;
|
||||
})
|
||||
}
|
||||
#endif
|
||||
|
||||
// Random access iterator methods
|
||||
|
||||
|
||||
Reference in New Issue
Block a user