diff --git a/include/occa/core/memoryPool.hpp b/include/occa/core/memoryPool.hpp index 3388b4ac1..e2ca1de1a 100644 --- a/include/occa/core/memoryPool.hpp +++ b/include/occa/core/memoryPool.hpp @@ -215,12 +215,6 @@ namespace occa { template occa::memory reserve(const dim_t entries); - - // Need to declare this function template specialization - // in the header so it is available in other translation units. - template <> - occa::memory reserve(const dim_t entries); - /** * @startDoc{reserve[1]} * @@ -257,6 +251,10 @@ namespace occa { void setAlignment(const udim_t alignment); }; + // Need to declare this function template specialization + // in the header so it is available in other translation units. + template <> + occa::memory memoryPool::reserve(const dim_t entries); } #include "memoryPool.tpp"