Are tuples of tuples allowed?
问题 I'm currently working on a class with a lot of templates and being able to build tuples of tuples would make it a lot easier But I tried this simple code in MSVC++ 2010: #include <tuple> void main() { auto x = std::make_tuple(std::make_tuple(5, true)); } And I get a compilation error. The same problem happens if I don't use std::make_tuple but directly std::tuple 's constructor. Is it a bug of MSVC or are tuples of tuples not allowed by the standard? 回答1: More data points: If we use std::tr1: