Simon Brand
d9d1a54abc
Test GCC 5.5
2018-06-06 10:27:54 +01:00
Simon Brand
0dd57d441c
Merge branch 'master' of github.com:TartanLlama/optional
2018-06-06 10:27:13 +01:00
Simon Brand
9a1b033113
Fix GCC 5.5
2018-06-06 10:27:08 +01:00
Simon Brand
d67e7c2eac
Merge pull request #9 from rollbear/master
...
'optional<T&>::and_then(F&& f) &&' calls f with lvalue reference
2018-06-04 22:34:48 +01:00
Bj?rn Fahller
e8b28f2e34
and the obligatory fixup for C++-11 :-)
2018-06-03 15:01:57 +02:00
Bj?rn Fahller
5143f9577a
'optional<T&>::and_then(F&& f) &&' calls f with lvalue reference
...
This makes sense. The 'optional' is an rvalue, but its contained type
remains an lvalue reference. I.e.
int i = 3;
optional<int&>{i}.and_then([](int& r){return optional<int&>{++r});
The optional r-value still refers to 'i', which is not an r-value.
2018-06-03 12:09:17 +02:00
Simon Brand
f82f78b5b6
Update supported compilers
2018-05-28 22:22:28 +01:00
Simon Brand
3a20e3f8cd
Update travis compilers
2018-05-28 22:08:15 +01:00
Simon Brand
779cf10329
Qualify call to detail::invoke so that std::invoke isn't picked up due to ADL in C++17
2018-05-28 21:46:58 +01:00
Simon Brand
effc941116
Fix warnings
2018-04-11 15:54:58 +01:00
Simon Brand
94b7563fdf
Merge branch 'master' of github.com:TartanLlama/optional
2018-04-11 15:53:11 +01:00
Simon Brand
d8973a6524
Fix #8
2018-04-11 15:53:01 +01:00
Simon Brand
ac8134265c
Merge pull request #6 from basiliscos/add-return
...
Add return
2018-03-19 08:13:38 +00:00
Ivan Baidakou
10e687e188
Add return
2018-03-09 22:46:02 +03:00
Simon Brand
74a422b824
Rename map_impl
2018-03-05 11:04:09 +00:00
Simon Brand
dccbc0b23e
C++11 fixes
2018-02-23 09:34:05 +00:00
Simon Brand
27b2163d10
Merge branch 'reference'
2018-02-23 09:25:42 +00:00
Simon Brand
3452cc1c8c
Fix macro
2018-02-23 09:23:53 +00:00
Simon Brand
2ab4f77498
Test C++11 mode
2018-02-23 09:17:53 +00:00
Simon Brand
cb52a3b744
Remove rvalue observers for optional<T&>
2018-02-11 09:52:19 +00:00
Simon Brand
d7ec1da407
Fix map for reference types
2018-02-11 09:40:01 +00:00
Simon Brand
4bde006cb5
Fix map for reference types
2018-02-11 09:32:35 +00:00
Simon Brand
14cfd77197
Rename type trait macros
2018-01-14 07:38:34 +00:00
Simon Brand
57d659daf5
Merge pull request #3 from TartanLlama/reference
...
Support optional references
v0.4
2017-12-18 10:56:40 +00:00
Simon Brand
883df6b427
Publish docs
2017-12-18 10:55:36 +00:00
Simon Brand
f621ca663e
Standardese
2017-12-18 10:55:12 +00:00
Simon Brand
8b408f5fd6
More docs
2017-12-18 10:51:48 +00:00
Simon Brand
632bc4e1ad
Update readme
2017-12-18 10:21:46 +00:00
Simon Brand
717027db9b
More tests
2017-12-18 10:10:11 +00:00
Simon Brand
8c3f042b12
More tests
2017-12-18 09:56:36 +00:00
Simon Brand
c4e3b3ee14
Get references compiling, initial tests
2017-12-14 14:53:35 +00:00
Simon Brand
bdaa41ce8c
Initial support for references
2017-12-13 16:03:01 +00:00
Simon Brand
e589ae4321
Add static asserts
2017-12-13 11:34:33 +00:00
Simon Brand
6c73b8113f
Bases fix
2017-12-13 09:13:05 +00:00
Simon Brand
32656c4556
Fix CMake
2017-12-05 19:53:49 +00:00
Simon Brand
b3dc6d1a52
Put header in 'tl' folder
2017-12-05 19:51:42 +00:00
Simon Brand
247677394f
Support mapping functions which return references
2017-12-05 19:51:20 +00:00
Simon Brand
5a3f094ec7
Update docs
v0.3
2017-11-27 15:12:44 +00:00
Simon Brand
26c00afe27
Fix bases test
2017-11-27 15:08:34 +00:00
Simon Brand
4308924a38
Fix GCC issues
2017-11-27 14:51:32 +00:00
Simon Brand
6c4178a947
More testing
2017-11-27 14:36:59 +00:00
Simon Brand
c67aaff948
Update mutexes
2017-11-27 12:24:47 +00:00
Simon Brand
b9486ce776
Clang format, support cohabitation with tl::expected
2017-11-16 11:17:26 +00:00
Simon Brand
a1d27b2aba
Merge branch 'master' of github.com:TartanLlama/monadic-optional-new
2017-11-06 08:51:46 +00:00
Simon Brand
d9ce8cf5c5
Update readme
2017-11-06 08:51:33 +00:00
Simon Brand
e62348c128
More testing
2017-11-05 20:31:18 +00:00
Simon Brand
39030e6a00
Fix ifdef
2017-11-03 14:29:35 +00:00
Simon Brand
4d5f9bd785
Fix ifdef
2017-11-03 14:29:21 +00:00
Simon Brand
f6802daada
Clang format
2017-11-03 14:29:02 +00:00
Simon Brand
59cf950873
Upgrade to Catch 2
2017-11-03 14:19:44 +00:00