Merge swapping

This commit is contained in:
Simon Brand
2019-04-26 13:44:27 +01:00
parent 57a8670798
commit 3674ba5295
9 changed files with 2579 additions and 2299 deletions
+10 -10
View File
@@ -110,20 +110,20 @@ TEST_CASE("Issue 43", "[issues.43]") {
#if !(__GNUC__ <= 5)
#include <memory>
using MaybeDataPtr = tl::expected<int, std::unique_ptr<int>>;
using MaybeDataPtr = tl::expected<int, std::unique_ptr<int>>;
MaybeDataPtr test(int i) noexcept
{
return std::move(i);
}
MaybeDataPtr test(int i) noexcept
{
return std::move(i);
}
MaybeDataPtr test2(int i) noexcept
{
return std::move(i);
}
MaybeDataPtr test2(int i) noexcept
{
return std::move(i);
}
TEST_CASE("Issue 49", "[issues.49]") {
auto m = test(10)
.and_then(test2);
}
#endif
#endif