1
0
forked from boostorg/mp11

Fix example

This commit is contained in:
Peter Dimov
2017-06-18 14:53:54 +03:00
parent 529aacb623
commit 5c7be526f9
2 changed files with 3 additions and 3 deletions

View File

@@ -3301,7 +3301,7 @@ using R1 = mp_fold<L1, std::ratio<0,1>, std::ratio_add>; // std::rat
{
std::size_t const N = sizeof...(T);
mp_for_each<mp_iota_c<N>>( []( auto I ){
mp_for_each<mp_iota_c<N>>( [&]( auto I ){
// I is mp_size_t<0>, mp_size_t<1>, ..., mp_size_t<N-1>
@@ -3840,7 +3840,7 @@ expression <code>f(std::get&lt;J&gt;(std::forward&lt;Tp&gt;(tp)))</code> for <co
</div>
<div id="footer">
<div id="footer-text">
Last updated 2017-06-17 19:42:32 GTBDT
Last updated 2017-06-18 02:23:06 GTBDT
</div>
</div>
<style>

View File

@@ -565,7 +565,7 @@ template<class... T> void print( std::tuple<T...> const & tp )
{
std::size_t const N = sizeof...(T);
mp_for_each<mp_iota_c<N>>( []( auto I ){
mp_for_each<mp_iota_c<N>>( [&]( auto I ){
// I is mp_size_t<0>, mp_size_t<1>, ..., mp_size_t<N-1>