[ create a new paste ] login | about

Project: za3k
Link: http://za3k.codepad.org/9cVciWLA    [ raw code | output | fork ]

za3k - C++, pasted on Jul 22:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <list>
#include <boost/tuple/tuple.hpp>

template<class InputIterator>
void f(InputIterator it)
{
	typedef boost::tuple<typename InputIterator::value_type, int> Pair;
	std::list<Pair> paired;
	typename std::list<Pair>::const_iterator output;
	for(output=paired.begin(); output!=paired.end(); ++output)
	{
		output->get<1>();
	}
}


Output:
1
2
3
In function 'void f(InputIterator)':
Line 12: error: expected primary-expression before ')' token
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: