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; }
|
||||
|
||||
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 {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue