From bd300bd5772056f03b4bde0e5849595b21c7f28b Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Fri, 4 Sep 2009 15:27:57 +0200 Subject: [PATCH] make NCurses::basic_buffer::Write() const --- src/strbuffer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/strbuffer.h b/src/strbuffer.h index 34ae9858..d499a52b 100644 --- a/src/strbuffer.h +++ b/src/strbuffer.h @@ -58,7 +58,7 @@ namespace NCurses bool SetFormatting(short vb, const std::basic_string &s, short ve, bool for_each = 1); void RemoveFormatting(short vb, const std::basic_string &s, short ve, bool for_each = 1); void SetTemp(std::basic_string *); - void Write(Window &w, size_t &pos, size_t width, const std::basic_string &sep); + void Write(Window &w, size_t &pos, size_t width, const std::basic_string &sep) const; void Clear(); template basic_buffer &operator<<(const T &t) @@ -144,7 +144,7 @@ template void NCurses::basic_buffer::SetTemp(std::basic_string void NCurses::basic_buffer::Write(Window &w, size_t &pos, size_t width, const std::basic_string &sep) +template void NCurses::basic_buffer::Write(Window &w, size_t &pos, size_t width, const std::basic_string &sep) const { std::basic_string s = itsString.str(); size_t len = Window::Length(s);