use boost::optional in asset_descriptor_base to avoid gcc compilation issues

This commit is contained in:
sowle 2024-08-12 20:14:31 +02:00
parent 19c818ed9b
commit faa95dd555
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -708,7 +708,7 @@ namespace currency
std::string meta_info;
crypto::public_key owner = currency::null_pkey; // consider premultipling by 1/8
bool hidden_supply = false;
std::optional<crypto::eth_public_key> owner_eth_pub_key; // note: the size is 33 bytes (if present)
boost::optional<crypto::eth_public_key> owner_eth_pub_key; // note: the size is 33 bytes (if present) // NOTE: using boost::optional instead of std::optional because of the Boost compilation issue: https://github.com/boostorg/serialization/issues/319 -- sowle
uint8_t version = ASSET_DESCRIPTOR_BASE_STRUCTURE_VER;