[vlc-commits] utils: Fix potential ambiguity with operator[]
Hugo Beauzée-Luyssen
git at videolan.org
Tue Apr 21 10:15:51 CEST 2015
npapi-vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Mar 24 16:43:15 2015 +0100| [84662783fef7dcfb0822d59e76934194c0239af9] | committer: Hugo Beauzée-Luyssen
utils: Fix potential ambiguity with operator[]
> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=84662783fef7dcfb0822d59e76934194c0239af9
---
npapi/utils.hpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/npapi/utils.hpp b/npapi/utils.hpp
index 960a791..0ad6ce9 100644
--- a/npapi/utils.hpp
+++ b/npapi/utils.hpp
@@ -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 )... );
More information about the vlc-commits
mailing list