Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int someFunction()
- {
- typedef std::vector<std::list<float>::iterator> T;
- std::cout << getTypeName<T>() << '\n'; // prints `someFunction()::T'
- // Weirdly enough, for function pointer typedefs, that doesn't happen:
- typedef void (*U)(std::vector<std::list<float>::iterator>);
- std::cout << getTypeName<U>() << '\n'; // prints
- // `void (*)(std::vector<std::_List_iterator<float>,
- // std::allocator<std::_List_iterator<float> > >)'
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement