]> git.ipfire.org Git - thirdparty/squid.git/commit
Range::size() returned value type
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Tue, 1 Feb 2011 08:49:56 +0000 (10:49 +0200)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Tue, 1 Feb 2011 08:49:56 +0000 (10:49 +0200)
commitc16f948beb714eb74a2650e6b45573b3fa35ba6f
treee7959aa4d67f355abdb5aa88cd00e230d46c66a4
parent6551ae9d1a0730ba9896fb95b0bdf87ea74824b1
Range::size() returned value type

This patch allow the user of the Range template class to define the type of
the returned value of Range::size() method, adding a second template argument.
The default type of the return value of Range::size() method is size_t, which
in most cases is enough (but not always, eg  HttpRange).
This patch will allow Range template to be used with non numeric types.
include/Range.h
src/HttpHeaderRange.h
src/client_side.cc
src/client_side.h