aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2009-09-04 16:15:38 +0000
committerMike Buland <eichlan@xagasoft.com>2009-09-04 16:15:38 +0000
commitc3bff3fb32dbf457ee5e9817153811d3f63b8fbe (patch)
tree4c186c6302ba03808def21bd4ee11815b080eff6 /src
parent6d6cca7830ed931198cd2df77bafbdd81038171a (diff)
downloadlibbu++-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.
Diffstat (limited to 'src')
-rw-r--r--src/list.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/list.h b/src/list.h
index 785a95c..12b50e5 100644
--- a/src/list.h
+++ b/src/list.h
@@ -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 << ", ";