Skip to content
This repository was archived by the owner on Jun 12, 2018. It is now read-only.

Commit c670e43

Browse files
committed
Added const to ::SendStream::size
1 parent 17f98db commit c670e43

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

client_ws.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ namespace SimpleWeb {
5050
SendStream() noexcept : std::iostream(&streambuf) {}
5151

5252
/// Returns the size of the buffer
53-
size_t size() noexcept {
53+
size_t size() const noexcept {
5454
return streambuf.size();
5555
}
5656

server_ws.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ namespace SimpleWeb {
5757
SendStream() noexcept : std::ostream(&streambuf) {}
5858

5959
/// Returns the size of the buffer
60-
size_t size() noexcept {
60+
size_t size() const noexcept {
6161
return streambuf.size();
6262
}
6363

0 commit comments

Comments
 (0)