ifdef out GCC compiler error

This commit is contained in:
Simon Brand
2019-02-25 12:20:13 +00:00
parent edfdf3e689
commit 815238795a

View File

@@ -107,6 +107,7 @@ TEST_CASE("Issue 43", "[issues.43]") {
result = tl::make_unexpected(std::string{ "foo" });
}
#if !(__GNUC__ <= 5)
#include <memory>
using MaybeDataPtr = tl::expected<int, std::unique_ptr<int>>;
@@ -125,3 +126,4 @@ TEST_CASE("Issue 49", "[issues.49]") {
auto m = test(10)
.and_then(test2);
}
#endif