Skip to content

Commit 5153de2

Browse files
authored
Work around bug in the CUDA 12.8 compiler frontend. (#938)
Work around bug in the CUDA 12.8 compiler frontend
1 parent 9bdba47 commit 5153de2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

core/include/detray/builders/surface_factory.hpp

+3-4
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,9 @@ class surface_factory : public surface_factory_interface<detector_t> {
159159
return {surfaces_offset, surfaces_offset};
160160
}
161161

162-
if constexpr (constexpr auto mask_id =
163-
detector_t::masks::template get_id<
164-
mask<mask_shape_t, algebra_t, volume_link_t>>();
165-
static_cast<std::size_t>(mask_id) >=
162+
constexpr auto mask_id = detector_t::masks::template get_id<
163+
mask<mask_shape_t, algebra_t, volume_link_t>>();
164+
if constexpr (static_cast<std::size_t>(mask_id) >=
166165
detector_t::masks::n_types) {
167166

168167
throw std::invalid_argument(

0 commit comments

Comments
 (0)