forked from OctaForge/libostd
fixes
This commit is contained in:
parent
5b4ea576b7
commit
9de9d99d4d
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue