master
Daniel Kolesa 2016-03-22 01:13:43 +00:00
parent 5b4ea576b7
commit 9de9d99d4d
2 changed files with 4 additions and 4 deletions

View File

@ -488,7 +488,7 @@ template<typename B, typename C, typename V, typename R = V &,
return (on - n);
}
Size copy(RemoveConst<Value> *p, Size n = -1) {
Size copy(RemoveCv<Value> *p, Size n = -1) {
B r(*((B *)this));
Size on = n;
for (; n && !r.empty(); --n) {
@ -991,7 +991,7 @@ public:
return orange.put_n(p_beg, c);
}
Size copy(RemoveConst<T> *p, Size n = -1) {
Size copy(RemoveCv<T> *p, Size n = -1) {
Size c = size();
if (n < c) c = n;
return copy(PointerRange(p, c), c);

View File

@ -853,7 +853,7 @@ String to_string(std::initializer_list<T> init) {
template<typename R>
struct TempCString {
private:
using Value = RemoveConst<RangeValue<R>>;
using Value = RemoveCv<RangeValue<R>>;
Value *p_buf;
bool p_allocated;
@ -893,7 +893,7 @@ public:
};
template<typename R>
inline TempCString<R> to_temp_cstr(R input, RemoveConst<RangeValue<R>> *buf,
inline TempCString<R> to_temp_cstr(R input, RemoveCv<RangeValue<R>> *buf,
Size bufsize) {
return TempCString<R>(input, buf, bufsize);
}