Brad King
03cc18678e
optional: Fix compilation on XLClang 16.1.0
...
The compiler rejects initialization with `= {}`:
error: chosen constructor is explicit in copy-initialization
Use just `{}` instead.
2023-05-26 00:20:21 +01:00
Ben Clayton
9a9d46f6b6
Fix bad usage of std::move
...
Issue #16 describes the problem and solution perfectly.
Updated tests to cover this.
Fixes #16
2020-01-24 15:21:26 +00:00
Ben Clayton
4abe43c131
optional: Remove the value() method that returns non-const-ref.
...
I'm not convinced that `opt.value() = foo` is a desirable pattern,
and worse still it confuses some compilers about which overload to
use.
Just remove it.
2020-01-24 07:25:33 +00:00
Ben Clayton
d13d4a4151
GCC build fixes
2019-11-14 00:29:38 +00:00
Ben Clayton
2dfd15462f
Initial drop of cppdap
2019-11-08 21:58:50 +00:00