Skip to content

unwrap_and_invoke doesn't work when the function returns void #145

@pdimov

Description

@pdimov
#include <boost/system/result.hpp>
#include <boost/system/unwrap_and_invoke.hpp>

int main()
{
    auto fn = []( auto&& /*x*/) {};
    boost::system::result<int> r;
    unwrap_and_invoke( fn, r );
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions