Skip to content

Commit db05347

Browse files
authored
register_checks: pass geometry context by reference instead of passing by value (acts-project#946)
If we pass by value, then the context gets eventually delivered to single_store in a broken state.
1 parent 9ac3f7e commit db05347

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/include/detray/test/common/detail/register_checks.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ template <template <typename> class check_t, typename detector_t,
2020
void register_checks(const detector_t &det,
2121
const typename detector_t::name_map &vol_names,
2222
const config_t &cfg = {},
23-
const typename detector_t::geometry_context gctx = {}) {
23+
const typename detector_t::geometry_context &gctx = {}) {
2424

2525
const char *test_name = cfg.name().c_str();
2626
if (!test_name) {

0 commit comments

Comments
 (0)