- Fixed several memory errors

This commit is contained in:
2025-08-20 20:57:15 -04:00
parent 037c62bf12
commit fe4c49d092
20 changed files with 463 additions and 387 deletions

View File

@@ -60,12 +60,12 @@ inline std::ostream& operator<<(std::ostream& os, const quaternion<ScalarT>& q)
// Helper for printing strings
inline std::ostream& operator<<(std::ostream& os, const cstring& str) {
return os << *str;
return os << str.data();
}
// Helper for printing strings
inline std::ostream& operator<<(std::ostream& os, const string& str) {
return os << *str;
return os << str.cstr();
}
// Helper for printing strings

View File

@@ -55,6 +55,11 @@ inline void fennec_test_containers_rdtree() {
fennec_test_spacer(1);
test.traverse<tree_t::pre_order>([](size_t i, size_t n) -> uint8_t {
assertf(i + 1 == n, "Tree Traverse Test Failed");
return traversal_control_continue;
});
test.erase(0);
fennec_test_run(test.empty(), true);