mirror of
https://github.com/TartanLlama/expected.git
synced 2025-08-02 18:34:29 +02:00
Merge branch 'master' into cmake_love
This commit is contained in:
@@ -42,8 +42,6 @@ tl::expected<image,fail_reason> 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.
|
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.
|
- `map`: carries out some operation on the stored object if there is one.
|
||||||
|
@@ -85,7 +85,7 @@ namespace tl {
|
|||||||
#ifdef _GLIBCXX_VECTOR
|
#ifdef _GLIBCXX_VECTOR
|
||||||
template<class T, class A>
|
template<class T, class A>
|
||||||
struct is_trivially_copy_constructible<std::vector<T,A>>
|
struct is_trivially_copy_constructible<std::vector<T,A>>
|
||||||
: std::is_trivially_copy_constructible<T>{};
|
: std::false_type{};
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1881,7 +1881,7 @@ private:
|
|||||||
using e_is_nothrow_move_constructible = std::true_type;
|
using e_is_nothrow_move_constructible = std::true_type;
|
||||||
using move_constructing_e_can_throw = std::false_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
|
// swapping void is a no-op
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user