Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=d5b54e6f05fc96c3ace80dd4577566998c22c69f
commit d5b54e6f05fc96c3ace80dd4577566998c22c69f Author: Michel Hermier <[email protected]> Date: Tue Nov 4 11:34:38 2014 +0100 libpacman: Remove unecessary templates overloads. diff --git a/lib/libpacman/util/flist.h b/lib/libpacman/util/flist.h index c1ec051..a363995 100644 --- a/lib/libpacman/util/flist.h +++ b/lib/libpacman/util/flist.h @@ -70,78 +70,6 @@ namespace flib } }; - template <typename Iterable> - struct iterable_traits<Iterable *> - { - typedef Iterable *iterable; - typedef ptrdiff_t difference_type; - typedef Iterable *pointer; - typedef Iterable &reference; - typedef size_t size_type; - typedef Iterable value_type; - - static iterable next(const iterable &i) - { - return i->next(); - } - - static iterable previous(const iterable &i) - { - return i->previous(); - } - - static reference reference_of(iterable i) - { - return i->operator * (); - } - - static pointer pointer_of(iterable i) - { - return i->operator -> (); - } - - static value_type value_of(const iterable i) - { - return i->operator * (); - } - }; - - template <typename Iterable> - struct iterable_traits<const Iterable *> - { - typedef Iterable *iterable; - typedef ptrdiff_t difference_type; - typedef const Iterable *pointer; - typedef const Iterable &reference; - typedef size_t size_type; - typedef Iterable value_type; - - static iterable next(const iterable &i) - { - return i->next(); - } - - static iterable previous(const iterable &i) - { - return i->previous(); - } - - static reference reference_of(iterable i) - { - return i->operator * (); - } - - static pointer pointer_of(iterable i) - { - return i->operator -> (); - } - - static value_type value_of(const iterable i) - { - return i->operator * (); - } - }; - template <typename Iterable, bool Reverse = false> struct const_iterator { _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
