cppbind: Fix for old g++

This commit is contained in:
Thomas Geymayer
2018-01-23 14:02:18 +01:00
parent e81597a176
commit b831d2b64a

View File

@@ -70,6 +70,14 @@ namespace nasal
return nasal::to_nasal(_ctx, array);
}
// Workaround for compilers which can not convert a braced-init-list
// to const T(&)[N]
template<class T>
naRef to_nasal(std::initializer_list<T> list) const
{
return nasal::to_nasal(_ctx, list);
}
template<class T>
Me to_me(T arg) const
{