diff --git a/doc/html/mp11.html b/doc/html/mp11.html index f35da32..265dc7e 100644 --- a/doc/html/mp11.html +++ b/doc/html/mp11.html @@ -861,7 +861,7 @@ template<class F, class... V> auto rvisit( F&& f, V&&... v ) { - using R = mp_unique<mp_product<Qret<F>::template fn, std::remove_reference_t<V>...>>; + using R = mp_unique<mp_product_q<Qret<F>, std::remove_reference_t<V>...>>; return std::visit( [&]( auto&&... x ){ return R( std::forward<F>(f)( std::forward<decltype(x)>(x)... ) ); }, std::forward<V>( v )... ); } @@ -2482,7 +2482,7 @@ each element of tp by evaluating the expression f(std::get<J>(std::forward<Tp>(tp))) for J in 0..N-1, - where N is std::tuple_size<std::remove_reference_t<Tp>>::value. + where N is std::tuple_size<typename std::remove_reference<Tp>::type>::value.

Returns std::forward<F>(f). @@ -2492,7 +2492,7 @@ - +

Last revised: May 24, 2017 at 02:43:53 GMT

Last revised: May 24, 2017 at 17:55:07 GMT


diff --git a/doc/mp11/examples.qbk b/doc/mp11/examples.qbk index fe315a1..a75b9f1 100644 --- a/doc/mp11/examples.qbk +++ b/doc/mp11/examples.qbk @@ -403,7 +403,7 @@ and we're done: template auto rvisit( F&& f, V&&... v ) { - using R = mp_unique::template fn, std::remove_reference_t...>>; + using R = mp_unique, std::remove_reference_t...>>; return std::visit( [&]( auto&&... x ){ return R( std::forward(f)( std::forward(x)... ) ); }, std::forward( v )... ); } diff --git a/doc/mp11/tuple_for_each.qbk b/doc/mp11/tuple_for_each.qbk index 4eb6b9e..7b1f53e 100644 --- a/doc/mp11/tuple_for_each.qbk +++ b/doc/mp11/tuple_for_each.qbk @@ -12,7 +12,7 @@ template constexpr F tuple_for_each(Tp&& tp, F&& f); `tuple_for_each(tp, f)` applies the function object `f` to each element of `tp` by evaluating the -expression `f(std::get(std::forward(tp)))` for `J` in 0..`N-1`, where `N` is `std::tuple_size>::value`. +expression `f(std::get(std::forward(tp)))` for `J` in 0..`N-1`, where `N` is `std::tuple_size::type>::value`. Returns `std::forward(f)`. [endsect]