MCPcopy Create free account
hub / github.com/Naios/function2 / assert_no_strong_except_guarantee

Class assert_no_strong_except_guarantee

include/function2/function2.hpp:1482–1491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1480
1481template <bool IsStrongExceptGuaranteed, typename T>
1482struct assert_no_strong_except_guarantee {
1483 static_assert(
1484 !IsStrongExceptGuaranteed ||
1485 (std::is_nothrow_move_constructible<T>::value &&
1486 std::is_nothrow_destructible<T>::value),
1487 "Can't wrap a object an object that has no strong exception guarantees "
1488 "if this is required by the wrapper!");
1489
1490 using type = void;
1491};
1492
1493/// SFINAES out if the given callable is not copyable correct to the left one.
1494template <typename LeftConfig, typename RightConfig>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected