Skip to content

Commit 48130a7

Browse files
committed
Fix: add namespace core at file scope in core_snippets.cpp
write_string() uses core::string_view at doc_core_snippets namespace scope, but namespace core was only declared inside fxx(). namespace net works globally because config.hpp defines it at global scope; core needs an equivalent declaration. Add it at file scope alongside the existing using namespace boost::beast.
1 parent d9919e7 commit 48130a7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

test/doc/core_snippets.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
//]
2020

2121
using namespace boost::beast;
22+
namespace core = boost::core; // from <boost/beast.hpp>
2223

2324
namespace doc_core_snippets {
2425

0 commit comments

Comments
 (0)