Commit 84662783 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

utils: Fix potential ambiguity with operator[]

parent a375881a
......@@ -477,13 +477,13 @@ private:
// Private implementation namespace
namespace details
{
template <int Idx, typename T>
template <size_t Idx, typename T>
void wrap( VariantArray& array, T arg )
{
array[Idx] = Variant(arg);
}
template <int Idx, typename T, typename... Args>
template <size_t Idx, typename T, typename... Args>
void wrap( VariantArray& array, T arg, Args... args )
{
wrap<Idx + 1>( array, std::forward<Args>( args )... );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment