Skip to content

What is the minimum supported version of boost for 0.21.0? #18943

@maflcko

Description

@maflcko

The wallet code uses Optional::emplace(), which was only added in boost 1.56, see boostorg/optional@2e583aa

So for 0.21.0 there are two options:

  • Work around emplace and keep the minimum boost version below 1.56
  • Require boost 1.56
wallet/rpcwallet.cpp: In function ‘UniValue listsinceblock(const JSONRPCRequest&)’:
wallet/rpcwallet.cpp:1560:16: error: ‘Optional<int>’ has no member named ‘emplace’
         height.emplace();
                ^
wallet/rpcwallet.cpp:1561:19: error: ‘Optional<int>’ has no member named ‘emplace’
         altheight.emplace();
                   ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions