Simon Brand
dd8ab0232e
Fix trivially destructible comment
2018-08-22 15:22:43 +01:00
Simon Brand
dc129ecf10
Only include vector workaround if vector is included
2018-08-22 15:22:16 +01:00
Simon Brand
bf0efe1625
Add vector workaround mutex
2018-08-22 15:21:31 +01:00
Simon Brand
9df8d1be39
Support std::vector of non-copyable types
2018-08-14 09:56:31 +01:00
Simon Brand
35e4c6e889
Remove unneeded file
2018-07-25 16:03:01 +01:00
Simon Brand
aa74eb709f
Add emplace test
2018-07-11 14:32:25 +01:00
Simon Brand
5dd9ed7e2c
Merge pull request #10 from kbenzie/cmake_subdirectory
...
Play nice with CMake add_subdirectory
2018-06-08 10:51:01 +01:00
Kenneth Benzie (Benie)
48d70a1604
Play nice with CMake add_subdirectory
...
Enable use of `tl::optional<T>` purely as a library with CMake's
`add_subdirectory`. The default configuration works are before.
* `OPTIONAL_ENABLE_TESTS` make building tests optional, enabled by default
* `OPTIONAL_ENABLE_DOCS` make building documentation optional, enabled by default
2018-06-08 10:45:19 +01:00
Simon Brand
c8a6658f9f
Remove GCC5.5 from test
2018-06-07 09:23:52 +01:00
Simon Brand
04b817f0d3
Correct GCC5.5 macro
2018-06-07 09:05:39 +01:00
Simon Brand
6e8235c085
Remove GCC5.5 from constexpr tests
2018-06-07 08:54:43 +01:00
Simon Brand
b3b2715a95
Remove GCC5.5 from constexpr tests
2018-06-07 08:28:29 +01:00
Simon Brand
90b00674dd
More C++14 void fixes
2018-06-06 13:54:12 +01:00
Simon Brand
e0a542f960
More GCC 5.5 fixes
2018-06-06 11:24:10 +01:00
Simon Brand
b72cc392b6
Typo
2018-06-06 11:14:36 +01:00
Simon Brand
9f01853678
Update readme
2018-06-06 10:46:34 +01:00
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