Simon Truscott
cd8c7920b3
Use move construction in swap implementation ( #103 )
...
* Use correct type alias in swap helper function
This was not an issue since both t_is_nothrow_move_constructible and
e_is_nothrow_move_constructible are type aliases for std::true_type.
* Use move instead of copy in swap implementation
2022-11-24 13:17:42 +00:00
Sy Brand
4e86bddee3
Add variadic constructors for tl::unexpected
2022-11-24 12:52:29 +00:00
Jackson
fb0bd6e79d
Add deduction guide to tl::unexpected ( #109 )
2022-11-24 12:22:17 +00:00
Sy Brand
f5d8f5c462
Remove unneccesary move in emplace
...
Fixes #122
2022-11-24 12:01:40 +00:00
Sy Brand
d901f362cc
Fix equality test for expected<void,E>
2022-11-24 11:50:20 +00:00
bobble-clank
96d547c03d
Fix use of std::remove_cv in static_assert ( #90 )
...
Access result via the member type 'type'. Otherwise the static_assert does not
do as was intended.
2021-09-07 10:23:16 +01:00
Simon Brand
6fe2af5191
Move the error value when throwing an exception in .value rval overloads ( #62 )
...
* Move the error value when throwing an exception in .value rval overloads
Fixes #61
* Bump version
2019-07-10 09:26:02 +01:00
Simon Brand
d71fc68823
Update header
2019-06-25 12:33:21 +01:00
Simon Brand
888b763f4c
Remove old docstrings
2019-06-25 12:31:24 +01:00
Simon Brand
66ea64f9af
Merge branch 'master' into cmake_love
2019-06-25 11:19:42 +01:00
Simon Brand
4700f852c7
Merge branch 'master' into cmake_love
2019-06-25 11:15:14 +01:00
Simon Brand
7b60e7a6b2
Tidy traits
2019-06-25 10:52:35 +01:00
Simon Brand
ec5f1f18a9
Add patch to version
2019-05-01 12:17:42 +01:00
Simon Brand
4e92363167
Remove uneeded file
2019-05-01 12:16:02 +01:00
Simon Brand
90ed23a4e4
Do CMake properly
2019-05-01 12:15:40 +01:00