mirror of
https://github.com/boostorg/iterator.git
synced 2025-07-23 09:27:15 +02:00
Merge branch 'develop'
This commit is contained in:
@ -84,7 +84,7 @@ namespace iterators {
|
|||||||
struct result<This(Iterator)>
|
struct result<This(Iterator)>
|
||||||
{
|
{
|
||||||
typedef typename
|
typedef typename
|
||||||
remove_reference<typename remove_cv<Iterator>::type>::type
|
remove_cv<typename remove_reference<Iterator>::type>::type
|
||||||
iterator;
|
iterator;
|
||||||
|
|
||||||
typedef typename iterator_reference<iterator>::type type;
|
typedef typename iterator_reference<iterator>::type type;
|
||||||
|
@ -58,6 +58,18 @@ int main()
|
|||||||
BOOST_TEST(boost::fusion::at_c<1>(*(i + 1)) == "pyonpyon");
|
BOOST_TEST(boost::fusion::at_c<1>(*(i + 1)) == "pyonpyon");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
// Trac #12895
|
||||||
|
boost::zip_iterator<
|
||||||
|
TUPLE<int*, std::string*>
|
||||||
|
> i(MAKE_TUPLE(vi.data(), vs.data()));
|
||||||
|
|
||||||
|
BOOST_TEST(boost::fusion::at_c<0>(* i ) == 42);
|
||||||
|
BOOST_TEST(boost::fusion::at_c<1>(* i ) == "kokoro");
|
||||||
|
BOOST_TEST(boost::fusion::at_c<0>(*(i + 1)) == 72);
|
||||||
|
BOOST_TEST(boost::fusion::at_c<1>(*(i + 1)) == "pyonpyon");
|
||||||
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
boost::zip_iterator<iterator_tuple> i1(MAKE_TUPLE(vi.begin(), vs.begin()));
|
boost::zip_iterator<iterator_tuple> i1(MAKE_TUPLE(vi.begin(), vs.begin()));
|
||||||
boost::zip_iterator<iterator_tuple> i2(MAKE_TUPLE(vi.end(), vs.end()));
|
boost::zip_iterator<iterator_tuple> i2(MAKE_TUPLE(vi.end(), vs.end()));
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#include <boost/config.hpp>
|
#include <boost/config.hpp>
|
||||||
|
|
||||||
#if !defined(BOOST_NO_CXX11_HDR_TUPLE)
|
#if !defined(BOOST_NO_CXX11_HDR_TUPLE) && !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
|
||||||
|
|
||||||
#include <tuple>
|
#include <tuple>
|
||||||
#include <boost/fusion/adapted/std_tuple.hpp>
|
#include <boost/fusion/adapted/std_tuple.hpp>
|
||||||
|
Reference in New Issue
Block a user