Sy Brand
f11bba1db5
Merge branch 'master' of github.com:TartanLlama/expected
2022-11-24 13:22:17 +00:00
Sy Brand
af47239f3f
Fix issue 122 test
2022-11-24 13:22:11 +00:00
Simon Truscott
2675ce3cd4
Fix warnings in test ( #92 )
...
* Convert tabs to spaces
* Remove extra semicolons in test
* Fix warnings in test
-Wreturn-type
-Wunused-parameter
-Wunused-value
* Fix -Wunused-variable warning in test
The variable 'failptr' is unused. From looking at the other variables in the
test case, it seems the fix is to first remove 'failptr' and then rename
'efail' to 'failptr'.
* Fix -Wunused-variable warning in test
* Fix -Wmacro-redefined warning in test
STATIC_REQUIRE has a previous definition in catch2/catch.hpp.
2022-11-24 13:18:39 +00:00
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
f88d817e06
Compile on VS2015
2022-11-24 13:11:50 +00:00
Sy Brand
9411e359b3
Merge branch 'master' of github.com:TartanLlama/expected
2022-11-24 13:11:40 +00:00
Sy Brand
e6d1f6e6bc
Create cmake.yml
2022-11-24 13:07:34 +00:00
Sy Brand
d72ac6d2c9
Compile on VS 2015
2022-11-24 13:03:27 +00:00
Sy Brand
6b9843d4d2
Update .appveyor.yml
2022-11-24 13:02:29 +00:00
Sy Brand
4e86bddee3
Add variadic constructors for tl::unexpected
2022-11-24 12:52:29 +00:00
Sy Brand
4621a489bf
Add tests for tl::unexpected guide
2022-11-24 12:23:11 +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
Sy Brand
68a5f5d701
Update README.md
2021-03-25 11:03:23 +00:00
Sy Brand
1d9c5d8c0d
Use add_library for subdirectory usage instead of add_executable
...
Fixes #73
2019-11-11 10:57:18 +00:00
Isabella Muerte
0ca73ee30e
🎨 Revamp CMake to be correct and easy to understand ( #69 )
...
🎨 Cleanup include path for catch2
✨ Add basic .deb generation support
WiX and RPM support is still needed (if even desired?)
⬆️ Upgrade minimum CMake version to 3.14
⬆️ Upgrade Catch to Catch v2.9.2
📌 Pin Catch to v2.9.2
2019-10-25 14:44:01 +01:00
Lesley Lai
fd96e4545c
Syntax highlight in README ( #64 )
2019-07-18 06:45:19 +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
David Yip
bcdc78bf8e
Remove internal Conan package: there is now an external one
2019-07-08 10:21:08 +01:00
Simon Brand
3d741708b9
Merge branch 'master' of github.com:TartanLlama/expected
v1.0.0
2019-06-25 12:34:36 +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
4f541d7221
Cmake love ( #55 )
...
* Do CMake properly
* Remove uneeded file
* Add patch to version
* Init submodule in appveyor
* Use FetchContent
* Up CMake version requirement
* Use Xenial on Travis instead of Trusty
* Tidy traits
* Use Xenial repos
2019-06-25 11:20:05 +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
edf6f538ca
Use Xenial repos
2019-06-25 10:53:05 +01:00
Simon Brand
7b60e7a6b2
Tidy traits
2019-06-25 10:52:35 +01:00
Simon Brand
3878a899ab
Use Xenial on Travis instead of Trusty
2019-06-25 10:22:18 +01:00
Simon Brand
eff4d15dc9
Up CMake version requirement
2019-06-25 09:53:44 +01:00
Simon Brand
0852c8f211
Use FetchContent
2019-06-25 09:52:55 +01:00
ksdd
1fb40294e6
Unused argument warning fixed. ( #59 )
2019-05-22 14:18:09 +01:00
Simon Brand
4f606f3d51
Correct GCC vector workaround for trivially-copyable types
...
Fixes #58
2019-05-22 10:41:00 +01:00
Simon Brand
1eba0ac799
Update README.md
2019-05-02 09:54:12 +01:00
Simon Brand
aa22af4d9d
Wrap try-catch blocks for -fno-exceptions
2019-05-02 09:16:31 +01:00
Simon Brand
6bb2b8f72d
Init submodule in appveyor
2019-05-01 12:19:21 +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
Simon Brand
2c9780949d
Update README.md
2019-04-30 11:59:40 +01:00
Simon Brand
d49721397e
Remove old docs
2019-04-30 11:54:32 +01:00
Simon Brand
27993d1dbc
Add transform
2019-04-30 11:52:55 +01:00
Simon Brand
3674ba5295
Merge swapping
2019-04-26 13:44:27 +01:00
le-migou
57a8670798
Fix constexpr access to value() and error() ( #53 )
...
These accessors call the private helpers `val()` and `err()`, which
should also be constexpr.
2019-04-25 18:39:03 +01:00
Simon Brand
199b5267fe
Reorganise union members since this appears to help GCC optimize default construction
2019-03-26 14:56:22 +00:00
Simon Brand
32b343b866
VS 2019 Workaround
...
Fixes #52
2019-03-25 15:31:01 +00:00
Simon Brand
1261754737
Fix C++11 mode in Clang
2019-03-11 13:40:31 +00:00
Simon Brand
34bc5a0af9
Fix travis CXXSTD
2019-03-11 13:26:08 +00:00
David Yip
5b58506abd
First cut at Conanfile and Conan package test. ( #50 )
2019-03-01 09:51:12 +00:00