Skip to content

Commit ca23baf

Browse files
author
Artiom N.
committed
Book 02, chapter 3 examples fix
1 parent 97a8f66 commit ca23baf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/book02/ch03/cpp/accept_pool/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ extern "C"
2323
#include <boost/asio.hpp>
2424

2525

26-
const auto clients_count = 3;
26+
constexpr auto clients_count = 3;
2727

2828

2929
int main(int argc, const char *const argv[])

src/book02/ch03/cpp/mt_server/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ extern "C"
2929

3030

3131
#if !defined(MAX_PATH)
32-
# define MAX_PATH (256)
32+
# define MAX_PATH 256
3333
#endif
3434

3535

0 commit comments

Comments
 (0)