Hi,
this code compiles:
#include <vector>
#include <list>
#include <algorithm>
#include
#include
int main()
{
const std::vector<int> vi(5u);
const std::list<int> li(5u);
std::for_each( boost::make_zip_iterator(boost::make_tuple(vi.begin(),
li.begin()) ), boost::make_zip_iterator(boost::make_tuple(vi.end(),
li.end() ) ),
[]( const boost::tuple& tpl )
{
tpl;
}
);
return 0;
}
but this code doesn't on msvc10:
#include <tuple>
#include <vector>
#include <list>
#include <algorithm>
#include
int main()
{
const std::vector<int> vi(5u);
const std::list<int> li(5u);
std::for_each( boost::make_zip_iterator( std::make_tuple(vi.begin(),
li.begin()) ), boost::make_zip_iterator( std::make_tuple(vi.end(), li.end()
) ),
[]( const std::tuple& tpl )
{
tpl;
}
);
return 0;
}
Is msvc10 std::tuple not std compliant, or not
boost::zip_iterator-compliant, or should zip_iterator impl change?
Rds,
MM