forked from OctaForge/libostd
fix shadow warnings
This commit is contained in:
parent
b3a12884be
commit
31d3182a4a
|
@ -662,8 +662,8 @@ public:
|
||||||
RangeSize<Rtype> size() const { return p_end - p_beg; }
|
RangeSize<Rtype> size() const { return p_end - p_beg; }
|
||||||
|
|
||||||
HalfRange<Rtype>
|
HalfRange<Rtype>
|
||||||
slice(RangeSize<Rtype> start, RangeSize<Rtype> p_end) const {
|
slice(RangeSize<Rtype> start, RangeSize<Rtype> end) const {
|
||||||
return HalfRange<Rtype>(p_beg + start, p_beg + p_end);
|
return HalfRange<Rtype>(p_beg + start, p_beg + end);
|
||||||
}
|
}
|
||||||
|
|
||||||
RangeReference<Rtype> operator[](RangeSize<Rtype> idx) const {
|
RangeReference<Rtype> operator[](RangeSize<Rtype> idx) const {
|
||||||
|
|
|
@ -36,7 +36,7 @@ struct StreamRange;
|
||||||
namespace detail {
|
namespace detail {
|
||||||
template<Size N>
|
template<Size N>
|
||||||
struct FormatOutRange: OutputRange<FormatOutRange<N>, char> {
|
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) {}
|
FormatOutRange(const FormatOutRange &r): buf(r.buf), idx(r.idx) {}
|
||||||
char *buf;
|
char *buf;
|
||||||
Size idx;
|
Size idx;
|
||||||
|
|
Loading…
Reference in a new issue