[ox/std] Make Vector::{front,back} return Result

This commit is contained in:
2021-04-17 11:29:21 -05:00
parent 6610b501b3
commit 09383401e5
3 changed files with 39 additions and 24 deletions

View File

@@ -18,7 +18,7 @@ std::map<std::string, std::function<ox::Error()>> tests = {
"malloc",
[] {
ox::Vector<char> buff(ox::units::MB);
ox::heapmgr::initHeap(&buff.front(), &buff.back());
ox::heapmgr::initHeap(&buff[0], &buff[buff.size()-1]);
oxAssert(ox::heapmgr::malloc(5) != nullptr, "malloc is broken");
oxAssert(ox::heapmgr::malloc(5) != nullptr, "malloc is broken");
return OxError(0);