Skip to content

Commit 74d86a1

Browse files
committedMay 31, 2024··
Fix C++20 bug in axis constructor
For reasons that I cannot fully explain, the default `multi_bin` constructor introduces a compiler error in C++20. This commit removes that constructor which seems to repair the situation.
1 parent 9e7a67d commit 74d86a1

File tree

1 file changed

+1
-3
lines changed
  • core/include/detray/utils/grid/detail

1 file changed

+1
-3
lines changed
 

‎core/include/detray/utils/grid/detail/axis.hpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ namespace detray::axis {
3131

3232
/// @brief Multi-bin: contains bin indices from multiple axes
3333
template <std::size_t DIM, typename index_t = dindex>
34-
struct multi_bin : public dmulti_index<index_t, DIM> {
35-
constexpr multi_bin() = default;
36-
};
34+
struct multi_bin : public dmulti_index<index_t, DIM> {};
3735

3836
/// @brief Helper to tie two bin indices to a range.
3937
/// @note Cannot use dindex_range for signed integer bin indices.

0 commit comments

Comments
 (0)
Please sign in to comment.