[vlc-commits] common: CallbackHandler: Fix perfect forwarding
Hugo Beauzée-Luyssen
git at videolan.org
Fri May 15 14:38:38 CEST 2015
libvlcpp | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed May 13 13:52:43 2015 +0200| [9b033f1cf35d735e06ddd10cf4fb0a8e60e7293b] | committer: Hugo Beauzée-Luyssen
common: CallbackHandler: Fix perfect forwarding
> http://git.videolan.org/gitweb.cgi/libvlcpp.git/?a=commit;h=9b033f1cf35d735e06ddd10cf4fb0a8e60e7293b
---
vlcpp/common.hpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/vlcpp/common.hpp b/vlcpp/common.hpp
index 633c7af..2b54be9 100644
--- a/vlcpp/common.hpp
+++ b/vlcpp/common.hpp
@@ -99,7 +99,8 @@ namespace VLC
template <typename Func>
struct CallbackHandler : public CallbackHandlerBase
{
- CallbackHandler(Func&& f) : func( std::forward<Func>( f ) ) {}
+ template <typename FuncFwd>
+ CallbackHandler(FuncFwd&& f) : func( std::forward<Func>( f ) ) {}
Func func;
};
More information about the vlc-commits
mailing list