Naming conflict

v1
Brett 2023-01-05 12:37:15 -05:00
parent 7fce270aec
commit 6ab916f287
1 changed files with 4 additions and 4 deletions

View File

@ -28,7 +28,7 @@ namespace BLT {
* @tparam T type stored in the queue * @tparam T type stored in the queue
*/ */
template<typename T> template<typename T>
class flat_queue { class flat_stack {
private: private:
int m_size = 16; int m_size = 16;
int m_insertIndex = 0; int m_insertIndex = 0;
@ -81,7 +81,7 @@ namespace BLT {
return m_insertIndex; return m_insertIndex;
} }
~flat_queue() { ~flat_stack() {
delete[](m_data); delete[](m_data);
} }
}; };
@ -91,7 +91,7 @@ namespace BLT {
* @tparam T type stored in the queue * @tparam T type stored in the queue
*/ */
template<typename T> template<typename T>
class flat_stack { class flat_queue {
private: private:
int m_size = 16; int m_size = 16;
int m_headIndex = 0; int m_headIndex = 0;
@ -147,7 +147,7 @@ namespace BLT {
return m_insertIndex - m_headIndex; return m_insertIndex - m_headIndex;
} }
~flat_stack() { ~flat_queue() {
delete[](m_data); delete[](m_data);
} }
}; };