Skip to content

Commit b0bf4c4

Browse files
committed
Fix example so that it compiles with Visual Studio 2013.
1 parent 06a9a15 commit b0bf4c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

asio/src/examples/cpp11/go/echo_server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class session : public std::enable_shared_from_this<session>
3535
auto self(shared_from_this());
3636

3737
std::size_t n = 0;
38-
char data[128] = "";
38+
std::array<char, 128> data;
3939

4040
asio::go(strand_,
4141
[this, self, n, data](asio::stackless_context ctx) mutable

0 commit comments

Comments
 (0)