Apparently static keyword gives error but it compiles

This commit is contained in:
Xiao Qi 2022-10-22 00:42:50 +08:00
parent 459d9dd9fd
commit 304071cb0a
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ namespace SHADE
/* Query Functions */ /* Query Functions */
/*-----------------------------------------------------------------------------------*/ /*-----------------------------------------------------------------------------------*/
template<typename T> template<typename T>
std::optional<AssetID> SHResourceManager::GetAssetID(Handle<T> handle) static std::optional<AssetID> SHResourceManager::GetAssetID(Handle<T> handle)
{ {
const Handle GENERIC_HANDLE = Handle(handle); const Handle GENERIC_HANDLE = Handle(handle);
auto [typedHandleMap, typedAssetIdMap] = getAssetHandleMap<T>(); auto [typedHandleMap, typedAssetIdMap] = getAssetHandleMap<T>();