diff --git a/core/include/detray/core/detail/single_store.hpp b/core/include/detray/core/detail/single_store.hpp index 4e9990ff5..6f63fb31e 100644 --- a/core/include/detray/core/detail/single_store.hpp +++ b/core/include/detray/core/detail/single_store.hpp @@ -1,6 +1,6 @@ /** Detray library, part of the ACTS project (R&D line) * - * (c) 2022-2023 CERN for the benefit of the ACTS project + * (c) 2022-2026 CERN for the benefit of the ACTS project * * Mozilla Public License Version 2.0 */ @@ -118,13 +118,17 @@ class single_store { /// @returns the collections iterator at the start position DETRAY_HOST_DEVICE constexpr auto begin(const context_type &ctx = {}) const { - return m_container.begin() + ctx.get() * m_context_size; + return m_container.begin() + + static_cast>( + ctx.get() * m_context_size); } /// @returns the collections iterator sentinel DETRAY_HOST_DEVICE constexpr auto end(const context_type &ctx = {}) const { - return m_container.begin() + (ctx.get() + 1) * m_context_size; + return m_container.begin() + + static_cast>( + (ctx.get() + 1) * m_context_size); } /// @returns access to the underlying container - const diff --git a/core/include/detray/utils/type_list.hpp b/core/include/detray/utils/type_list.hpp index 11f090003..db696ff49 100644 --- a/core/include/detray/utils/type_list.hpp +++ b/core/include/detray/utils/type_list.hpp @@ -1,6 +1,6 @@ /** Detray library, part of the ACTS project (R&D line) * - * (c) 2023-2025 CERN for the benefit of the ACTS project + * (c) 2023-2026 CERN for the benefit of the ACTS project * * Mozilla Public License Version 2.0 */ @@ -104,8 +104,8 @@ struct get_at {}; template struct get_at> { - using type = - std::remove_cvref_t(dtuple{}))>; + using type = std::remove_cvref_t( + std::declval>()))>; }; template using at = typename get_at::type; diff --git a/tests/unit_tests/device/cuda/sf_finders_grid_cuda.cpp b/tests/unit_tests/device/cuda/sf_finders_grid_cuda.cpp index 69da29486..5ea431ce6 100644 --- a/tests/unit_tests/device/cuda/sf_finders_grid_cuda.cpp +++ b/tests/unit_tests/device/cuda/sf_finders_grid_cuda.cpp @@ -1,6 +1,6 @@ /** Detray library, part of the ACTS project (R&D line) * - * (c) 2022-2024 CERN for the benefit of the ACTS project + * (c) 2022-2026 CERN for the benefit of the ACTS project * * Mozilla Public License Version 2.0 */ @@ -234,7 +234,8 @@ TEST(grids_cuda, grid2_complete_populator) { // Other point with which the bin has been completed const scalar gbin_f{static_cast(gbin)}; const point3 tp{axis_r.min() + gbin_f * width_r, - axis_phi.min() + gbin_f * width_phi, 0.5}; + axis_phi.min() + gbin_f * width_phi, + static_cast(0.5)}; // Go through all points and compare int pt_idx{0}; @@ -312,7 +313,8 @@ TEST(grids_cuda, grid2_attach_populator) { // Other point with which the bin has been completed const scalar gbin_f{static_cast(gbin)}; const point3 tp{axis_r.min() + gbin_f * width_r, - axis_phi.min() + gbin_f * width_phi, 0.5}; + axis_phi.min() + gbin_f * width_phi, + static_cast(0.5)}; // Go through all points and compare int pt_idx{0}; @@ -422,7 +424,8 @@ TEST(grids_cuda, grid2_dynamic_attach_populator) { // Other point with which the bin has been completed const scalar gbin_f{static_cast(gbin)}; const point3 tp{axis_r.min() + gbin_f * width_r, - axis_phi.min() + gbin_f * width_phi, 0.5}; + axis_phi.min() + gbin_f * width_phi, + static_cast(0.5)}; // Go through all points and compare int pt_idx{0};