forked from boostorg/iterator
Return BOOST_NOEXCEPT
This commit is contained in:
committed by
Georgy Guminov
parent
054c013bba
commit
4a49b8a1a2
@@ -27,7 +27,7 @@ namespace iterators {
|
|||||||
|
|
||||||
class output_proxy {
|
class output_proxy {
|
||||||
public:
|
public:
|
||||||
explicit output_proxy(UnaryFunction& f) noexcept : m_f(f) { }
|
explicit output_proxy(UnaryFunction& f) BOOST_NOEXCEPT : m_f(f) { }
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
|
|
||||||
@@ -39,7 +39,7 @@ namespace iterators {
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOST_DEFAULTED_FUNCTION(output_proxy(output_proxy const& that), noexcept : m_f(that.m_f) {})
|
BOOST_DEFAULTED_FUNCTION(output_proxy(output_proxy const& that), BOOST_NOEXCEPT : m_f(that.m_f) {})
|
||||||
BOOST_DELETED_FUNCTION(output_proxy& operator=(output_proxy const&))
|
BOOST_DELETED_FUNCTION(output_proxy& operator=(output_proxy const&))
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@@ -145,11 +145,11 @@ int main()
|
|||||||
BOOST_TEST(!boost::iterators::is_iterator< int complete::* >::value);
|
BOOST_TEST(!boost::iterators::is_iterator< int complete::* >::value);
|
||||||
BOOST_TEST(!boost::iterators::is_iterator< int (complete::*)(int) >::value);
|
BOOST_TEST(!boost::iterators::is_iterator< int (complete::*)(int) >::value);
|
||||||
BOOST_TEST(!boost::iterators::is_iterator< int (complete::*)(int) const >::value);
|
BOOST_TEST(!boost::iterators::is_iterator< int (complete::*)(int) const >::value);
|
||||||
#if defined(__cpp_noexcept_function_type) && (__cpp_noexcept_function_type >= 201510L)
|
|
||||||
BOOST_TEST(!boost::iterators::is_iterator< int (*)(int) noexcept >::value);
|
BOOST_TEST(!boost::iterators::is_iterator< int (*)(int) BOOST_NOEXCEPT >::value);
|
||||||
BOOST_TEST(!boost::iterators::is_iterator< int (complete::*)(int) noexcept >::value);
|
BOOST_TEST(!boost::iterators::is_iterator< int (complete::*)(int) BOOST_NOEXCEPT >::value);
|
||||||
BOOST_TEST(!boost::iterators::is_iterator< int (complete::*)(int) const noexcept >::value);
|
BOOST_TEST(!boost::iterators::is_iterator< int (complete::*)(int) const BOOST_NOEXCEPT >::value);
|
||||||
#endif
|
|
||||||
BOOST_TEST(!boost::iterators::is_iterator< int[] >::value);
|
BOOST_TEST(!boost::iterators::is_iterator< int[] >::value);
|
||||||
BOOST_TEST(!boost::iterators::is_iterator< int[10] >::value);
|
BOOST_TEST(!boost::iterators::is_iterator< int[10] >::value);
|
||||||
BOOST_TEST(!boost::iterators::is_iterator< int*[] >::value);
|
BOOST_TEST(!boost::iterators::is_iterator< int*[] >::value);
|
||||||
|
Reference in New Issue
Block a user