diff options
author | Mike Buland <eichlan@xagasoft.com> | 2009-09-04 16:15:38 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2009-09-04 16:15:38 +0000 |
commit | c3bff3fb32dbf457ee5e9817153811d3f63b8fbe (patch) | |
tree | 4c186c6302ba03808def21bd4ee11815b080eff6 | |
parent | 6d6cca7830ed931198cd2df77bafbdd81038171a (diff) | |
download | libbu++-c3bff3fb32dbf457ee5e9817153811d3f63b8fbe.tar.gz libbu++-c3bff3fb32dbf457ee5e9817153811d3f63b8fbe.tar.bz2 libbu++-c3bff3fb32dbf457ee5e9817153811d3f63b8fbe.tar.xz libbu++-c3bff3fb32dbf457ee5e9817153811d3f63b8fbe.zip |
Wow, I should check this in the other containers. I should have known better,
but I made the Formatter << operator for Lists use the List with the value as
the template parameter, and no others, so if you actually tune the list, you
can't format it anymore. This has been fixed.
-rw-r--r-- | src/list.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -766,11 +766,11 @@ namespace Bu | |||
766 | class Formatter; | 766 | class Formatter; |
767 | Formatter &operator<<( Formatter &rOut, char *sStr ); | 767 | Formatter &operator<<( Formatter &rOut, char *sStr ); |
768 | Formatter &operator<<( Formatter &rOut, signed char c ); | 768 | Formatter &operator<<( Formatter &rOut, signed char c ); |
769 | template<typename value> | 769 | template<typename a, typename b, typename c, typename d> |
770 | Formatter &operator<<( Formatter &f, const Bu::List<value> &l ) | 770 | Formatter &operator<<( Formatter &f, const Bu::List<a,b,c,d> &l ) |
771 | { | 771 | { |
772 | f << '['; | 772 | f << '['; |
773 | for( typename Bu::List<value>::const_iterator i = l.begin(); i; i++ ) | 773 | for( typename Bu::List<a,b,c,d>::const_iterator i = l.begin(); i; i++ ) |
774 | { | 774 | { |
775 | if( i != l.begin() ) | 775 | if( i != l.begin() ) |
776 | f << ", "; | 776 | f << ", "; |