http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48350

--- Comment #1 from tinlyx at gmail dot com 2011-03-30 07:28:55 UTC ---
As a matter of fact, make_tuple() cannot be used on any tuples with cardinality
other than 1. This contrasts with std::vector where we can have a vector of
vectors (e.g. a matrix).

A minimal example is listed below:

//b.cpp
#include <tuple>
using namespace std;

int main() {
  //auto te = make_tuple();     //this doesn't work
  auto te = make_tuple(1);      //this works
  //auto te = make_tuple(1,2);  //this doesn't work
  auto tte = make_tuple(te);
  return 0;
}



//////////
//The compiler error message is omitted, but I can upload it if necessary.

Reply via email to