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. diff --git a/include/tl/expected.hpp b/include/tl/expected.hpp index 3242b21..e0105a9 100644 --- a/include/tl/expected.hpp +++ b/include/tl/expected.hpp @@ -85,7 +85,7 @@ namespace tl { #ifdef _GLIBCXX_VECTOR template struct is_trivially_copy_constructible> - : std::is_trivially_copy_constructible{}; + : std::false_type{}; #endif } } @@ -1881,7 +1881,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 }