fix shadow warnings

master
Daniel Kolesa 2015-12-30 15:13:07 +01:00
parent b3a12884be
commit 31d3182a4a
2 changed files with 3 additions and 3 deletions

View File

@ -662,8 +662,8 @@ public:
RangeSize<Rtype> size() const { return p_end - p_beg; }
HalfRange<Rtype>
slice(RangeSize<Rtype> start, RangeSize<Rtype> p_end) const {
return HalfRange<Rtype>(p_beg + start, p_beg + p_end);
slice(RangeSize<Rtype> start, RangeSize<Rtype> end) const {
return HalfRange<Rtype>(p_beg + start, p_beg + end);
}
RangeReference<Rtype> operator[](RangeSize<Rtype> idx) const {

View File

@ -36,7 +36,7 @@ struct StreamRange;
namespace detail {
template<Size N>
struct FormatOutRange: OutputRange<FormatOutRange<N>, char> {
FormatOutRange(char *buf): buf(buf), idx(0) {}
FormatOutRange(char *ibuf): buf(ibuf), idx(0) {}
FormatOutRange(const FormatOutRange &r): buf(r.buf), idx(r.idx) {}
char *buf;
Size idx;