// // 2.13.alias.template.cpp // chapter 2 language usability // modern cpp tutorial // // created by changkun at changkun.de // https://github.com/changkun/modern-cpp-tutorial // #include #include #include template class MagicType { public: T dark; U magic; }; // illegal // template // typedef MagicType, std::string> FakeDarkMagic; typedef int (*process)(void *); using NewProcess = int(*)(void *); template using TrueDarkMagic = MagicType, std::string>; int main() { // FakeDarkMagic me; TrueDarkMagic you; }