summaryrefslogtreecommitdiff
path: root/src/file.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-03-09 13:48:41 +0000
committerMaxime Coste <frrrwww@gmail.com>2015-03-09 13:54:09 +0000
commit1cec8df45e297a8136df6f293d4874ae6c6cb013 (patch)
tree7d713ba554765093238c924bcc9a6eaf7bf240ec /src/file.hh
parent44f81d0b8b73367369de6be0757247a62876d4c1 (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/file.hh')
-rw-r--r--src/file.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/file.hh b/src/file.hh
index f9817e2d..8fc4eac0 100644
--- a/src/file.hh
+++ b/src/file.hh
@@ -1,6 +1,7 @@
#ifndef file_hh_INCLUDED
#define file_hh_INCLUDED
+#include "array_view.hh"
#include "completion.hh"
#include "exception.hh"
#include "regex.hh"
@@ -23,7 +24,6 @@ struct file_not_found : file_access_error
};
class Buffer;
-template<typename T> class ArrayView;
class String;
class StringView;
@@ -43,7 +43,7 @@ void write_buffer_to_file(Buffer& buffer, StringView filename);
void write_buffer_to_fd(Buffer& buffer, int fd);
void write_buffer_to_backup_file(Buffer& buffer);
-String find_file(StringView filename, ArrayView<String> paths);
+String find_file(StringView filename, ConstArrayView<String> paths);
time_t get_fs_timestamp(StringView filename);