A previous question and answer (here) showed that a list of tuples could be created by:
#include <vector>
#include <boost/tuple/tuple.hpp>
using namespace std;
using boost::tuple;
typedef vector< tuple<int, int> > tuple_list;
While I don't get an error when running with C++98, C++1y (GCC/GNU on Ubuntu) gives:
error: template argument 1 is invalid
typedef vector< tuple<int, int> > tuple_list;
^
error: template argument 2 is invalid
error: invalid type in declaration before ‘;’ token
typedef vector< tuple<int, int> > tuple_list;
^
Any idea what's going on? (If I could have commented on the other thread I would have, but awesome SO says my reputation is too low to comment!)
Aucun commentaire:
Enregistrer un commentaire