adjacency_matrix: add error messages

This commit is contained in:
Michele Caini
2022-06-21 14:31:59 +02:00
parent f76959af63
commit 610951771e

View File

@@ -361,7 +361,7 @@ public:
if constexpr(std::is_same_v<graph_category, undirected_tag>) {
const auto rev = rhs * vert + lhs;
ENTT_ASSERT(matrix[pos] == matrix[rev]);
ENTT_ASSERT(matrix[pos] == matrix[rev], "Something went really wrong");
matrix[rev] = 1u;
}
@@ -380,7 +380,7 @@ public:
if constexpr(std::is_same_v<graph_category, undirected_tag>) {
const auto rev = rhs * vert + lhs;
ENTT_ASSERT(matrix[pos] == matrix[rev]);
ENTT_ASSERT(matrix[pos] == matrix[rev], "Something went really wrong");
matrix[rev] = 0u;
}