You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lokinet/llarp
Jason Rhinelander ebd2142114 Don't use std::optional::value() because f u macos
This replaces all use of std::optional's `opt.value()` with `*opt`
because macOS is great and the ghost of Steve Jobs says that actually
supporting std::optional's value() method is not for chumps before macOS
10.14.  So don't use it because Apple is great.

Pretty much all of our use of it actually is done better with operator*
anyway (since operator* doesn't do a check that the optional has a
value).

Also replaced *most* of the `has_value()` calls with direct bool
context, except for one in the config section which looked really
confusing at a glance without a has_value().
4 years ago
..
android The Great Wall of Blame 4 years ago
config Don't use std::optional::value() because f u macos 4 years ago
consensus The Great Wall of Blame 4 years ago
constants Remove DEBIAN option 4 years ago
crypto Don't use std::optional::value() because f u macos 4 years ago
dht Don't use std::optional::value() because f u macos 4 years ago
dns Move IPRange out of net.hpp; free up TruncateV6 etc. 4 years ago
ev Move IPPacket header (part 1) 4 years ago
exit Untangle some interdependencies 4 years ago
handlers Move IPRange out of net.hpp; free up TruncateV6 etc. 4 years ago
hook The Great Wall of Blame 4 years ago
iwp make format 4 years ago
link Don't use std::optional::value() because f u macos 4 years ago
linux Removed RPI definition 4 years ago
messages Don't use std::optional::value() because f u macos 4 years ago
net Don't use std::optional::value() because f u macos 4 years ago
path Don't use std::optional::value() because f u macos 4 years ago
router Don't use std::optional::value() because f u macos 4 years ago
routing The Great Wall of Blame 4 years ago
rpc Silence various warnings 4 years ago
service Don't use std::optional::value() because f u macos 4 years ago
simulation The Great Wall of Blame 4 years ago
tooling unbreak router hive 4 years ago
util Don't use std::optional::value() because f u macos 4 years ago
win32 remove a ton of ded win32 code 4 years ago
CMakeLists.txt Untangle some interdependencies 4 years ago
app.xml stray tag ;-; 6 years ago
bootstrap.cpp The Great Wall of Blame 4 years ago
bootstrap.hpp The Great Wall of Blame 4 years ago
context.cpp Don't use std::optional::value() because f u macos 4 years ago
nodedb.cpp Don't use std::optional::value() because f u macos 4 years ago
nodedb.hpp Opportunistically move 'netdb' to 'nodedb' 4 years ago
pow.cpp The Great Wall of Blame 4 years ago
pow.hpp The Great Wall of Blame 4 years ago
profiling.cpp Don't use std::optional::value() because f u macos 4 years ago
profiling.hpp The Great Wall of Blame 4 years ago
router_contact.cpp Don't use std::optional::value() because f u macos 4 years ago
router_contact.hpp C++17 4 years ago
router_id.cpp The Great Wall of Blame 4 years ago
router_id.hpp The Great Wall of Blame 4 years ago
router_version.cpp The Great Wall of Blame 4 years ago
router_version.hpp The Great Wall of Blame 4 years ago
testnet.c prepare for 0.5.0 5 years ago