Skip to content

Commit 5b5c464

Browse files
committed
Fix: edge_t constructor for NVCC
1 parent a98945f commit 5b5c464

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

less_slow.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4354,6 +4354,12 @@ struct edge_t {
43544354
vertex_id_t from;
43554355
vertex_id_t to;
43564356
edge_weight_t weight;
4357+
4358+
//! NVCC's `std::construct_at` requires those default constructors
4359+
constexpr edge_t() noexcept = default;
4360+
constexpr edge_t(edge_t const &) noexcept = default;
4361+
constexpr edge_t(vertex_id_t from, vertex_id_t to, edge_weight_t weight) noexcept
4362+
: from(from), to(to), weight(weight) {}
43574363
};
43584364

43594365
static_assert( //

0 commit comments

Comments
 (0)