diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-03-09 13:48:41 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-03-09 13:54:09 +0000 |
| commit | 1cec8df45e297a8136df6f293d4874ae6c6cb013 (patch) | |
| tree | 7d713ba554765093238c924bcc9a6eaf7bf240ec /src/remote.cc | |
| parent | 44f81d0b8b73367369de6be0757247a62876d4c1 (diff) | |
ArrayView content is not const anymore
As in upcoming std c++ array_view, ArrayView<T> points to mutable
data, use ArrayView<const T> or alias ConstArrayView<T> for const
data.
Diffstat (limited to 'src/remote.cc')
| -rw-r--r-- | src/remote.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/remote.cc b/src/remote.cc index e2aa10cc..27394347 100644 --- a/src/remote.cc +++ b/src/remote.cc @@ -68,7 +68,7 @@ public: } template<typename T> - void write(ArrayView<T> view) + void write(ConstArrayView<T> view) { write<uint32_t>(view.size()); for (auto& val : view) @@ -78,7 +78,7 @@ public: template<typename T, MemoryDomain domain> void write(const Vector<T, domain>& vec) { - write(ArrayView<T>(vec)); + write(ConstArrayView<T>(vec)); } template<typename Key, typename Val, MemoryDomain domain> @@ -249,7 +249,7 @@ public: RemoteUI(int socket); ~RemoteUI(); - void menu_show(ArrayView<String> choices, + void menu_show(ConstArrayView<String> choices, CharCoord anchor, Face fg, Face bg, MenuStyle style) override; void menu_select(int selected) override; @@ -298,7 +298,7 @@ RemoteUI::~RemoteUI() m_socket_watcher.close_fd(); } -void RemoteUI::menu_show(ArrayView<String> choices, +void RemoteUI::menu_show(ConstArrayView<String> choices, CharCoord anchor, Face fg, Face bg, MenuStyle style) { |
