From 1eba0ac79994766de7ee8ee81ef1cb5123944842 Mon Sep 17 00:00:00 2001 From: Simon Brand Date: Thu, 2 May 2019 09:54:12 +0100 Subject: [PATCH 1/3] Update README.md --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index 6356b01..4df10ad 100644 --- a/README.md +++ b/README.md @@ -42,8 +42,6 @@ tl::expected get_cute_cat (const image& img) { } ``` -Full documentation available at [expected.tartanllama.xyz](https://expected.tartanllama.xyz) - The interface is the same as `std::expected` as proposed in [p0323r3](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/p0323r3.pdf), but the following member functions are also defined. Explicit types are for clarity. - `map`: carries out some operation on the stored object if there is one. From 4f606f3d5195ec988dc6a7b62cf6acebcb49aa1b Mon Sep 17 00:00:00 2001 From: Simon Brand Date: Wed, 22 May 2019 10:41:00 +0100 Subject: [PATCH 2/3] Correct GCC vector workaround for trivially-copyable types Fixes #58 --- tl/expected.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tl/expected.hpp b/tl/expected.hpp index 796fd85..e670e48 100644 --- a/tl/expected.hpp +++ b/tl/expected.hpp @@ -84,7 +84,7 @@ namespace tl { #ifdef _GLIBCXX_VECTOR template struct is_trivially_copy_constructible> - : std::is_trivially_copy_constructible{}; + : std::false_type{}; #endif } } From 1fb40294e6fc8c147289eeb55a6d42b007659033 Mon Sep 17 00:00:00 2001 From: ksdd Date: Wed, 22 May 2019 15:18:09 +0200 Subject: [PATCH 3/3] Unused argument warning fixed. (#59) --- tl/expected.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tl/expected.hpp b/tl/expected.hpp index e670e48..2ff302e 100644 --- a/tl/expected.hpp +++ b/tl/expected.hpp @@ -1849,7 +1849,7 @@ private: using e_is_nothrow_move_constructible = std::true_type; using move_constructing_e_can_throw = std::false_type; - void swap_where_both_have_value(expected &rhs, t_is_void) noexcept { + void swap_where_both_have_value(expected &/*rhs*/ , t_is_void) noexcept { // swapping void is a no-op }