Simon Brand
dc02563d7b
Update version
v0.5
2018-11-09 15:34:16 +00:00
Simon Brand
3449fbc904
Fix #15
2018-10-12 13:34:03 +01:00
Simon Brand
b53059c63d
Fix macro issue
2018-09-06 09:34:05 +01:00
Simon Brand
25f8f28a9a
Workaround MSVC2015 bug
2018-09-03 14:55:54 +01:00
Simon Brand
6c5e6d6477
More Clang fixes
2018-09-03 14:30:07 +01:00
Simon Brand
4d5453bc56
Add missing define
2018-09-03 13:49:56 +01:00
Simon Brand
068d3db664
Workaround libcxx issue
2018-09-03 12:10:22 +01:00
Simon Brand
fd6c65e7f9
Merge branch 'master' of github.com:TartanLlama/optional
2018-09-03 09:09:57 +01:00
Simon Brand
aecb8fe6db
Fix #14
2018-09-03 09:09:47 +01:00
Simon Brand
0d449821ca
Merge pull request #13 from mortenfyhn/master
...
Add syntax highlighting to readme
2018-08-31 15:25:41 +01:00
Morten Fyhn Amundsen
6738107bae
Add syntax highlighting to readme
2018-08-31 16:15:55 +02:00
Simon Brand
8b1c3fb67f
Fix the other bad comment
2018-08-22 15:50:43 +01:00
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