diff --git a/include/pd/core/pool.hpp b/include/pd/core/pool.hpp index 529bd28..fd2ccc9 100644 --- a/include/pd/core/pool.hpp +++ b/include/pd/core/pool.hpp @@ -107,6 +107,9 @@ class Pool { pPos = 0; } + /** THE ILLEGAL RESET FUNC */ + void NoReset() { pPos = 0; } + /** * Copy the data of another pool */ diff --git a/include/pd/core/timetrace.hpp b/include/pd/core/timetrace.hpp index a3c4ddd..82c27dc 100644 --- a/include/pd/core/timetrace.hpp +++ b/include/pd/core/timetrace.hpp @@ -144,8 +144,6 @@ class TimeStats { * Timatrace Functions */ namespace TT { -class Res; -using TraceMap = std::map; /** * Data Structure for a TimeTrace Result */ @@ -213,6 +211,7 @@ class Res { /** Protocol */ TimeStats protocol; }; +using TraceMap = std::map; /** * Begin a Trace * @param id Name of the Trace diff --git a/source/lithium/pools.cpp b/source/lithium/pools.cpp index ca4db77..62acd7a 100644 --- a/source/lithium/pools.cpp +++ b/source/lithium/pools.cpp @@ -57,8 +57,8 @@ PD_API const u16& GetIndex(size_t loc) { } PD_API void ResetPools() { - pVtxPool.Reset(); - pIdxPool.Reset(); + pVtxPool.NoReset(); + pIdxPool.NoReset(); } } // namespace Li } // namespace PD \ No newline at end of file