mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
792 B

  1. Get the tempalte friends to compile with gcc-3.4.
  2. - Rene Rebe <rene@rocklinux.org
  3. --- ./lib/list.h.vanilla 2004-07-05 13:54:18.000000000 +0200
  4. +++ ./lib/list.h 2004-07-05 14:01:49.000000000 +0200
  5. @@ -9,18 +9,19 @@
  6. ~list_node() { }
  7. };
  8. -template<class T> class list_iterator;
  9. -template<class T> class const_list_iterator;
  10. +template<typename T> class list_iterator;
  11. +template<typename T> class const_list_iterator;
  12. -template<class T> class list
  13. +template<typename T> class list
  14. {
  15. public:
  16. typedef list_node<T> node;
  17. typedef list_iterator<T> iter;
  18. typedef const_list_iterator<T> const_iter;
  19. - friend class iter;
  20. - friend class const_iter;
  21. -
  22. +
  23. + friend class list_iterator<T>;
  24. + friend class const_list_iterator<T>;
  25. +
  26. list()
  27. : head(0), tail(0), cnt(0)
  28. {