mirror of
https://github.com/oxen-io/oxen-core.git
synced 2023-12-14 02:22:56 +01:00
b7dd5e8911
When targetting macos <10.14 macos won't allow use of anything from C++17 that throws, such as: - std::get on a variant - std::visit - std::optional::value() - std::any_cast This avoids all of these. For std::get, we either replace with std::get_if (where appropriate), or else use a `var::get` implementation of std::get added to lokimq (also updated here). (This `var` namespace is just an `std` alias everywhere *except* old target macos). For std::visit, likewise lokimq adds an var::visit implementation for old macos that we use. std::optional::value() uses weren't useful anyway as everywhere it calls them we've already checked that the option has a value, in which case we can use `*opt` (which doesn't check for contents and throw). std::any just has to be avoided as far as I can tell, but the one place we used it is only ever a block, so I just replaced it with a `const block*`. |
||
---|---|---|
.. | ||
account.cpp | ||
account.h | ||
account_boost_serialization.h | ||
blobdatatype.h | ||
CMakeLists.txt | ||
connection_context.h | ||
cryptonote_basic.h | ||
cryptonote_basic_impl.cpp | ||
cryptonote_basic_impl.h | ||
cryptonote_boost_serialization.h | ||
cryptonote_format_utils.cpp | ||
cryptonote_format_utils.h | ||
difficulty.cpp | ||
difficulty.h | ||
hardfork.cpp | ||
hardfork.h | ||
miner.cpp | ||
miner.h | ||
subaddress_index.h | ||
tx_extra.h | ||
verification_context.h |