[libsigcplusplus] bind: Use of constexpr.



commit f622cb70528b62bc851a7e498177de8f73e72345
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue Mar 8 14:24:00 2016 +0100

    bind: Use of constexpr.

 sigc++/adaptors/bind.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/sigc++/adaptors/bind.h b/sigc++/adaptors/bind.h
index 65281f7..c3b9050 100644
--- a/sigc++/adaptors/bind.h
+++ b/sigc++/adaptors/bind.h
@@ -138,7 +138,7 @@ struct bind_functor : public adapts<T_functor>
       const auto t_end = internal::tuple_end<t_args_size - I_location>(t_args);
       const auto t_with_bound = std::tuple_cat(t_start, t_bound, t_end);
 
-      const auto seq = std::make_index_sequence<std::tuple_size<decltype(t_with_bound)>::value>();
+      constexpr const auto seq = std::make_index_sequence<std::tuple_size<decltype(t_with_bound)>::value>();
       return call_functor_operator_parentheses(t_with_bound, seq);
     }
 
@@ -191,7 +191,7 @@ struct bind_functor<-1, T_functor, T_type...> : public adapts<T_functor>
       const auto t_bound = internal::tuple_transform_each<internal::TransformEachInvoker>(bound_);
       const auto t_with_bound = std::tuple_cat(t_args, t_bound);
 
-      const auto seq = std::make_index_sequence<std::tuple_size<decltype(t_with_bound)>::value>();
+      constexpr auto seq = std::make_index_sequence<std::tuple_size<decltype(t_with_bound)>::value>();
       return call_functor_operator_parentheses(t_with_bound, seq);
     }
 


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