Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template <class T>
- void parseType(std::string type)
- {
- std::string spec = extractOneSpecifierFrom(type);
- if (spec == "[]") {
- parseType<T[]>(type);
- } else if (spec == "*") {
- parseType<T*>(type);
- } else if (spec == "const") {
- parseType<const T>(type);
- } // ... etc.
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement