Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <deque>
- template <class T>
- class SomeClass {
- typedef std::deque<T> the_deque;
- typedef the_deque::iterator the_iterator;
- };
- ## GCC error (i686-apple-darwin9-g++-4.0.1)
- d.cpp:6: error: type 'std::deque<T, std::allocator<_CharT> >' is not derived from type 'SomeClass<T>'
- d.cpp:6: error: expected ';' before 'the_iterator'
- ## Solution after tinkering in an hour and a half
- Add “typename” after the second typedef keyword.
Add Comment
Please, Sign In to add comment