Comments (2)
Probably easiest to remove those functions from the source and run the tests to find any places they were called, then replacing those sites with direct accesses by making the non-members friend functions like you say.
from optional.
For now I go with a subtype approach and see if I can delete the unsafe operations.
from optional.
Related Issues (20)
- tl::optional<T&>::emplace() is implemented incorrectly
- std::hash<tl::optional<T>> sfinae
- Return type not correctly deduced HOT 6
- or_else of an Optional with a reference HOT 1
- value_or(...) && problem with move-only types
- Interaction with containers HOT 1
- Plan for new release? HOT 4
- Suppress MSVC warnings 4582 and 4583
- add value_or_cast<U>
- Make constexpr swap
- constructable from std::optional HOT 1
- add a value_or_eval similar to boost::optional HOT 3
- memory leaks and 'use after move' bugs inside assignment operators implementation HOT 1
- tl::optional cannot be used with exceptions disabled
- `tl::optional<T&>` should be constructible from a `tl::optional<T>`.
- `tl::optional` comparison operators do not work with template checks HOT 2
- Add a trivial `apply` function
- The converting optional<U> constructor only works with optional<const T&>
- Feature suggestion: Free monadic-optional functions usable with pipe syntax.
- Please compare to C++17's declaration-in-if in the readme
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from optional.