Skip to content

Commit

Permalink
Compile fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ma30002000 committed Nov 26, 2020
1 parent 3db4b65 commit 42353e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/goldfish/buffered_stream.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ namespace goldfish { namespace stream
fill_in_buffer();

auto cb = std::min(m_buffered.size(), data.size());
copy_span(remove_front(m_buffered, cb), std::span<byte>{ data.begin(), cb });
copy_span(remove_front(m_buffered, cb), std::span<byte>{ data.data(), cb });
return cb;
}

Expand Down Expand Up @@ -205,4 +205,4 @@ namespace goldfish { namespace stream
};
template <size_t N, class inner> enable_if_reader_t<inner, buffered_reader<N, std::decay_t<inner>>> buffer(inner&& stream) { return{ std::forward<inner>(stream) }; }
template <size_t N, class inner> enable_if_writer_t<inner, buffered_writer<N, std::decay_t<inner>>> buffer(inner&& stream) { return{ std::forward<inner>(stream) }; }
}}
}}

0 comments on commit 42353e2

Please sign in to comment.