diff options
| author | Léo Lam <leo@innovatetechnologi.es> | 2017-05-07 13:29:53 +0200 |
|---|---|---|
| committer | Léo Lam <leo@innovatetechnologi.es> | 2017-06-03 12:36:24 +0200 |
| commit | b08653d69dc940ad65d96ccf2f2bf440a91920aa (patch) | |
| tree | 43a76158ee4aaa16fea03a306e8b75d86fe647b2 /Source/Core/InputCommon/ControllerInterface/Device.cpp | |
| parent | 3443454ba279811a6e10a840d8c21af3e24dd614 (diff) | |
Common: Add a std::optional implementation
std::optional makes a few things a bit neater and less error prone.
However, we still cannot use C++17 (unfortunately), so this commit
adds an implementation of std::optional that we can use right now.
Based on https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/lib/gtl/optional.h
which seems to be fairly similar to C++17's <optional> and standards
compliant. It's one of the few implementations that handle propagating
type traits like copy constructibility, just like libc++/libstdc++.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/Device.cpp')
0 files changed, 0 insertions, 0 deletions
