summaryrefslogtreecommitdiffstats
path: root/source/core/slang-array.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/core/slang-array.h')
-rw-r--r--source/core/slang-array.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/core/slang-array.h b/source/core/slang-array.h
index f1ed4fe0d..d24ff0970 100644
--- a/source/core/slang-array.h
+++ b/source/core/slang-array.h
@@ -159,14 +159,14 @@ namespace Slang
void insertArray(Array<T, SIZE>& arr, const T& val, TArgs... args)
{
arr.add(val);
- insertArray(arr, args...);
+ insertArray<T>(arr, args...);
}
template<typename ...TArgs>
auto makeArray(TArgs ...args) -> Array<typename FirstType<TArgs...>::Type, sizeof...(args)>
{
Array<typename FirstType<TArgs...>::Type, Index(sizeof...(args))> rs;
- insertArray(rs, args...);
+ insertArray<typename FirstType<TArgs...>::Type>(rs, args...);
return rs;
}