working toward gcc 4.8 support

This commit is contained in:
badair
2016-04-15 21:57:44 -05:00
parent be405ea378
commit 16e11da844
6 changed files with 21 additions and 14 deletions

View File

@@ -70,14 +70,14 @@ auto BEEF_returns_B(B, E, E, F) {
}
template <typename F, typename Tuple, std::size_t... I>
constexpr decltype(auto)
constexpr auto
apply_helper(F&& f, Tuple&& t, CALLABLE_TRAITS_IX_SEQ(I...)) {
return std::forward<F>(f)(std::get<I>(std::forward<Tuple>(t))...);
}
//used to apply the expected_args tuple to std::bind
template <typename F, typename Tuple>
constexpr decltype(auto)
constexpr auto
apply(F&& f, Tuple&& t) {
return apply_helper(
std::forward<F>(f),