Skip to content

Commit 11e9d58

Browse files
author
Vakho Tsulaia
committed
register_checks: pass geometry context by reference instead of passing by value
If we pass by value then the context gets eventually delivered to single_store in a broken state
1 parent c4b3265 commit 11e9d58

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)