- Fixed several memory errors
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user