oxen-core/src/cryptonote_basic
Jason Rhinelander b7dd5e8911 Target macos 10.12
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*`.
2020-10-18 11:18:08 -03:00
..
account.cpp boost::variant -> std::variant 2020-07-02 12:52:12 -03:00
account.h LNS: Remove the wallet's ed25519 key, we support wallet addresses 2020-03-12 12:16:35 +11:00
account_boost_serialization.h Update monero copyright to 2019 pre-emptively to make merge simpler 2019-04-12 14:36:43 +10:00
blobdatatype.h Replace boost::string_ref with std::string_view 2020-07-02 12:52:12 -03:00
CMakeLists.txt Fix backwards link direction 2020-07-02 12:55:28 -03:00
connection_context.h Replace boost chrono & posix_time with stl chrono 2020-07-02 12:52:13 -03:00
cryptonote_basic.h Target macos 10.12 2020-10-18 11:18:08 -03:00
cryptonote_basic_impl.cpp Eliminate unnamespaced parse_hash256 function 2020-09-18 20:25:48 -03:00
cryptonote_basic_impl.h Eliminate unnamespaced parse_hash256 function 2020-09-18 20:25:48 -03:00
cryptonote_boost_serialization.h Use rct::is_rct_<whatever> where appropriate 2020-09-16 20:45:09 -03:00
cryptonote_format_utils.cpp Target macos 10.12 2020-10-18 11:18:08 -03:00
cryptonote_format_utils.h Target macos 10.12 2020-10-18 11:18:08 -03:00
difficulty.cpp Pulse: Drop difficulty to 1,000,000 for PoW at the fork height 2020-10-12 18:06:36 +11:00
difficulty.h Pulse: Drop difficulty to 1,000,000 for PoW at the fork height 2020-10-12 18:06:36 +11:00
hardfork.cpp Delay HF16 to 12 October 2020-10-02 12:41:14 -03:00
hardfork.h add_fork: allow == timestamps and throw on error 2020-08-17 02:54:45 -03:00
miner.cpp miner: Simplify integration test debug mining 2020-08-18 11:59:53 +10:00
miner.h miner: Simplify integration test debug mining 2020-08-18 11:59:53 +10:00
subaddress_index.h Replace epee http client with curl-based client 2020-08-07 17:14:03 -03:00
tx_extra.h Lokinet LNS 2020-09-17 10:24:48 -03:00
verification_context.h Merge commit 'c4f75fe' into MergeUpstream3 2020-05-28 15:29:00 +10:00