Closed shomagan closed 6 years ago
const T & at(u32 idx) const {
if( idx >= size_value ){
exit_fatal("Array out of bounds");
}
return m_array[idx];
}
The code above will be use to fix the issue with compiling. Nice work!
Did't compile without change in Array.hpp T & at(u32 idx){ if( idx < size_value ){ return m_array[idx]; } //fatal error return 0; //to - for example return m_array[size_value]; } in Array class variable size_value have type "u32," but function size() have "int" at return value