[libsigcplusplus/variadic_mem_fun3: 103/148] hide_functor: Avoid using std::make_tuple().



commit f5430a7941208d1108f0c624deff11dc193fae1a
Author: Murray Cumming <murrayc murrayc com>
Date:   Thu Mar 3 22:23:32 2016 +0100

    hide_functor: Avoid using std::make_tuple().
    
    Because it can change types, such as changing std::ref()ed T to T.

 sigc++/adaptors/hide.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/sigc++/adaptors/hide.h b/sigc++/adaptors/hide.h
index 8b9fc02..71ffdf5 100644
--- a/sigc++/adaptors/hide.h
+++ b/sigc++/adaptors/hide.h
@@ -81,7 +81,7 @@ struct hide_functor : public adapts<T_functor>
     {
        constexpr auto size = sizeof...(T_arg);
        constexpr auto index_ignore = (I_location == -1 ? size - 1 : I_location);
-       const auto t = std::make_tuple(_A_a...);
+       const auto t = std::tuple<T_arg...>(_A_a...);
 
        const auto t_start = internal::tuple_start<index_ignore>(t);
        const auto t_end = internal::tuple_end<size - index_ignore - 1>(t);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]