mirror of
https://github.com/boostorg/optional.git
synced 2025-07-30 20:47:18 +02:00
removed incorrect noexcept from tests
This commit is contained in:
@ -25,10 +25,8 @@
|
|||||||
|
|
||||||
#if __cplusplus < 201103L
|
#if __cplusplus < 201103L
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#define SWAP_EX_SPEC
|
|
||||||
#else
|
#else
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#define SWAP_EX_SPEC noexcept
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
using boost::optional;
|
using boost::optional;
|
||||||
@ -244,14 +242,12 @@ void swap(optional_swap_test::class_whose_default_ctor_should_be_used & x, optio
|
|||||||
|
|
||||||
template <>
|
template <>
|
||||||
void swap(optional_swap_test::class_whose_default_ctor_should_not_be_used & x, optional_swap_test::class_whose_default_ctor_should_not_be_used & y)
|
void swap(optional_swap_test::class_whose_default_ctor_should_not_be_used & x, optional_swap_test::class_whose_default_ctor_should_not_be_used & y)
|
||||||
SWAP_EX_SPEC
|
|
||||||
{
|
{
|
||||||
optional_swap_test::swap(x, y);
|
optional_swap_test::swap(x, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
void swap(optional_swap_test::class_without_default_ctor & x, optional_swap_test::class_without_default_ctor & y)
|
void swap(optional_swap_test::class_without_default_ctor & x, optional_swap_test::class_without_default_ctor & y)
|
||||||
SWAP_EX_SPEC
|
|
||||||
{
|
{
|
||||||
optional_swap_test::swap(x, y);
|
optional_swap_test::swap(x, y);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user