Skip to content

Commit

Permalink
More explicit construction
Browse files Browse the repository at this point in the history
  • Loading branch information
thorstenhater committed Feb 12, 2025
1 parent f2c4e38 commit c7c12bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/probe-demo/probe-demo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ void sampler(arb::probe_metadata pm, std::size_t n, const arb::sample_record* sa
}
}

static auto any2loc(std::any a) { return arb::mlocation(0, std::any_cast<double>(a)); }
static auto any2loc(std::any a) -> arb::mlocation { return arb::mlocation { .branch=0, .pos=std::any_cast<double>(a) }; }

bool parse_options(options& opt, int& argc, char** argv) {
using std::get;
Expand Down

0 comments on commit c7c12bb

Please sign in to comment.