diff --git a/clink/app/src/history/history_db.cpp b/clink/app/src/history/history_db.cpp index 056e70f5..77b9de36 100644 --- a/clink/app/src/history/history_db.cpp +++ b/clink/app/src/history/history_db.cpp @@ -179,7 +179,7 @@ class ReadLock public: FileIter() = default; FileIter(const ReadLock& lock, char* buffer, int32 buffer_size); - template FileIter(const ReadLock& lock, char (&buffer)[S]); + template FileIter(const ReadLock& lock, char (&buffer)[S]); uint32 next(uint32 rollback=0); uint32 get_buffer_offset() const { return _buffer_offset; } char* get_buffer() const { return _buffer; } @@ -199,7 +199,7 @@ class ReadLock public: LineIter() = default; LineIter(const ReadLock& lock, char* buffer, int32 buffer_size); - template LineIter(const ReadLock& lock, char (&buffer)[S]); + template LineIter(const ReadLock& lock, char (&buffer)[S]); LineIdImpl next(StrIter& out); private: diff --git a/clink/app/src/history/history_db.h b/clink/app/src/history/history_db.h index 91f4d0f4..82690898 100644 --- a/clink/app/src/history/history_db.h +++ b/clink/app/src/history/history_db.h @@ -43,7 +43,7 @@ class HistoryDb bool remove(LineId id); LineId find(const char* line) const; ExpandResult expand(const char* line, StrBase& out) const; - template Iter read_lines(char (&buffer)[S]); + template Iter read_lines(char (&buffer)[S]); Iter read_lines(char* buffer, uint32 buffer_size); private: diff --git a/clink/core/include/core/str.h b/clink/core/include/core/str.h index 95d05491..ba07c21c 100644 --- a/clink/core/include/core/str.h +++ b/clink/core/include/core/str.h @@ -358,26 +358,26 @@ class StrBase : public StrImpl { public: template StrBase(char (&data)[I]) : StrImpl(data, I - 1) {} - StrBase(char* data, int32 size) : StrImpl(data, size) {} - StrBase(const StrBase&) = delete; - StrBase(const StrBase&&) = delete; - int32 from_utf16(const wchar_t* utf16) { clear(); return to_utf8(*this, utf16); } - void operator = (const char* value) { copy(value); } - void operator = (const wchar_t* value) { from_utf16(value); } - void operator = (const StrBase& rhs) = delete; + StrBase(char* data, int32 size) : StrImpl(data, size) {} + StrBase(const StrBase&) = delete; + StrBase(const StrBase&&) = delete; + int32 from_utf16(const wchar_t* utf16) { clear(); return to_utf8(*this, utf16); } + void operator = (const char* value) { copy(value); } + void operator = (const wchar_t* value) { from_utf16(value); } + void operator = (const StrBase& rhs) = delete; }; class WstrBase : public StrImpl { public: template WstrBase(char (&data)[I]) : StrImpl(data, I - 1) {} - WstrBase(wchar_t* data, int32 size) : StrImpl(data, size) {} - WstrBase(const WstrBase&) = delete; - WstrBase(const WstrBase&&) = delete; - int32 from_utf8(const char* utf8) { clear(); return to_utf16(*this, utf8); } - void operator = (const wchar_t* value) { copy(value); } - void operator = (const char* value) { from_utf8(value); } - void operator = (const WstrBase&) = delete; + WstrBase(wchar_t* data, int32 size) : StrImpl(data, size) {} + WstrBase(const WstrBase&) = delete; + WstrBase(const WstrBase&&) = delete; + int32 from_utf8(const char* utf8) { clear(); return to_utf16(*this, utf8); } + void operator = (const wchar_t* value) { copy(value); } + void operator = (const char* value) { from_utf8(value); } + void operator = (const WstrBase&) = delete; }; diff --git a/clink/terminal/include/terminal/ecma48_iter.h b/clink/terminal/include/terminal/ecma48_iter.h index 8d35e35e..52e0b181 100644 --- a/clink/terminal/include/terminal/ecma48_iter.h +++ b/clink/terminal/include/terminal/ecma48_iter.h @@ -63,7 +63,7 @@ class Ecma48Code uint32 get_length() const { return _length; } Type get_type() const { return _type; } uint32 get_code() const { return _code; } - template bool decode_csi(Csi& out) const; + template bool decode_csi(Csi& out) const; bool get_c1_str(StrBase& out) const; private: diff --git a/clink/terminal/include/terminal/terminal_out.h b/clink/terminal/include/terminal/terminal_out.h index d2bf2347..86f31295 100644 --- a/clink/terminal/include/terminal/terminal_out.h +++ b/clink/terminal/include/terminal/terminal_out.h @@ -13,7 +13,7 @@ class TerminalOut virtual void begin() = 0; virtual void end() = 0; virtual void write(const char* chars, int32 length) = 0; - template void write(const char (&chars)[S]); + template void write(const char (&chars)[S]); virtual void flush() = 0; virtual int32 get_columns() const = 0; virtual int32 get_rows() const = 0;