io: remove the view overload for slurp

This just confuses matters. A `view` can be across arbitrary data, and
is often used as a representation of a file's _data_.
This commit is contained in:
Danny Robson 2018-10-18 12:50:21 +11:00
parent e2eaa1a7af
commit 0de176591d

6
io.hpp
View File

@ -31,12 +31,6 @@ namespace cruft {
template <typename T = std::byte>
std::vector<T> slurp (const std::experimental::filesystem::path&);
template <typename T = std::byte, typename A, typename B>
std::vector<T> slurp (cruft::view<A,B> path)
{
const std::experimental::filesystem::path src { path.begin (), path.end () };
return slurp<T> (src);
}
template <typename T = std::byte>
std::vector<T> slurp (FILE *);