X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8033578c7938cc79ec840fc74c8eab82efbd9454..27ca960d5d525f1bfe6d6a02cfd4d456a041aeac:/include/xbt/functional.hpp diff --git a/include/xbt/functional.hpp b/include/xbt/functional.hpp index 145e461e5a..e84506fb9c 100644 --- a/include/xbt/functional.hpp +++ b/include/xbt/functional.hpp @@ -7,7 +7,6 @@ #define XBT_FUNCTIONAL_HPP #include -#include #include #include @@ -64,8 +63,8 @@ template inline std::function wrap_main(F code, int argc, cons namespace bits { template -constexpr auto apply(F&& f, Tuple&& t, simgrid::xbt::index_sequence) - -> decltype(std::forward(f)(std::get(std::forward(t))...)) +constexpr auto apply(F&& f, Tuple&& t, std::index_sequence) + -> decltype(std::forward(f)(std::get(std::forward(t))...)) { return std::forward(f)(std::get(std::forward(t))...); } @@ -81,20 +80,13 @@ constexpr auto apply(F&& f, Tuple&& t, simgrid::xbt::index_sequence) * @endcode **/ template -constexpr auto apply(F&& f, Tuple&& t) - -> decltype(simgrid::xbt::bits::apply( - std::forward(f), - std::forward(t), - simgrid::xbt::make_index_sequence< - std::tuple_size::type>::value - >())) +constexpr auto apply(F&& f, Tuple&& t) -> decltype( + simgrid::xbt::bits::apply(std::forward(f), std::forward(t), + std::make_index_sequence::type>::value>())) { return simgrid::xbt::bits::apply( - std::forward(f), - std::forward(t), - simgrid::xbt::make_index_sequence< - std::tuple_size::type>::value - >()); + std::forward(f), std::forward(t), + std::make_index_sequence::type>::value>()); } template class Task;