Skip to content

Commit 91ae4c0

Browse files
Minor tweaks, working on big update
1 parent a7b246f commit 91ae4c0

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ The stand-alone Asio library is a dependency for Chops Net IP. Specific version
3737

3838
The `shared_buffer` library from Connective C++ is a dependency, providing reference counted `std::byte` buffers.
3939

40-
`expected_lite` from Martin Moene is a dependency, providing `std::expected` functionality for C++ 20 code baselines. If Chops Net IP transitions to a C++ 23 baseline, `expected_lite` will be replaced with `std::expected`.
40+
`expected_lite` from Martin Moene is a dependency, providing `std::expected` functionality for C++ 20 code baselines. Chops Net IP uses `nonstd::expected` in the codebase per Martin's library and will transition to `std::expected` when C++ 23 becomes the baseline.
4141

4242
## C++ Standard
4343

include/net_ip/basic_io_interface.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
* @author Cliff Green
1010
*
11-
* Copyright (c) 2017-2019 by Cliff Green
11+
* Copyright (c) 2017-2025 by Cliff Green
1212
*
1313
* Distributed under the Boost Software License, Version 1.0.
1414
* (See accompanying file LICENSE.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

include/net_ip/net_ip.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
* @author Cliff Green
1010
*
11-
* Copyright (c) 2017-2019 by Cliff Green
11+
* Copyright (c) 2017-2025 by Cliff Green
1212
*
1313
* Distributed under the Boost Software License, Version 1.0.
1414
* (See accompanying file LICENSE.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -26,7 +26,7 @@
2626
#include <variant> // std::visit
2727
#include <type_traits> // std::enable_if
2828

29-
#include <mutex>
29+
#include <mutex> // std::scoped_lock, std::mutex
3030

3131
#include "asio/io_context.hpp"
3232
#include "asio/ip/tcp.hpp"
@@ -130,7 +130,7 @@ class net_ip {
130130
std::vector<detail::udp_entity_io_shared_ptr> m_udp_entities;
131131

132132
private:
133-
using lg = std::lock_guard<std::mutex>;
133+
using lg = std::scoped_lock<std::mutex>;
134134

135135
public:
136136

0 commit comments

Comments
 (0)