Output the type of a typedef at compile time in C++ (specifically when an error occurs)
问题 It is very difficult for me to explain this particular problem/question so please bear with me (I am having trouble with all my template related questions!). Take this code as an example (note that the point of showing the code is to show a complex template hierarchy, not whether it makes sense): #include <string> #include <vector> #include <list> template <typename T> struct Foo { typedef typename T::value_type value_type; typedef typename T::value_type1 value_type1; typedef typename T: