24 #ifndef STATICLIB_IO_COUNTING_SOURCE_HPP
25 #define STATICLIB_IO_COUNTING_SOURCE_HPP
29 #include "staticlib/config.hpp"
40 template<
typename Source>
59 src(std::move(src)) { }
82 src(std::move(other.src)),
94 src = std::move(other.src);
107 std::streamsize res = src.read(span);
108 if (sl::support::is_sizet(res)) {
109 count +=
static_cast<size_t>(res);
141 template <
typename Source,
142 class =
typename std::enable_if<!std::is_lvalue_reference<Source>::value>::type>
154 template <
typename Source>