Skip to content

Commit e085c52

Browse files
committed
Remove dependency on Boost.Preprocessor
Closes #3050
1 parent b687af7 commit e085c52

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ set(BOOST_BEAST_DEPENDENCIES
6767
Boost::logic
6868
Boost::mp11
6969
Boost::optional
70-
Boost::preprocessor
7170
Boost::smart_ptr
7271
Boost::static_string
7372
Boost::system

build.jam

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ constant boost_dependencies :
2020
/boost/logic//boost_logic
2121
/boost/mp11//boost_mp11
2222
/boost/optional//boost_optional
23-
/boost/preprocessor//boost_preprocessor
2423
/boost/smart_ptr//boost_smart_ptr
2524
/boost/static_string//boost_static_string
2625
/boost/system//boost_system

include/boost/beast/core/detail/config.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#include <boost/version.hpp>
1616
#include <boost/core/ignore_unused.hpp>
1717
#include <boost/core/detail/static_assert.hpp>
18-
#include <boost/preprocessor/cat.hpp>
1918

2019
namespace boost {
2120
namespace asio
@@ -102,15 +101,16 @@ namespace net = boost::asio;
102101
#define BOOST_BEAST_ASYNC_TPARAM2 BOOST_ASIO_COMPLETION_TOKEN_FOR(void(::boost::beast::error_code, ::std::size_t))
103102
#endif
104103

105-
106104
#ifdef BOOST_BEAST_NO_SOURCE_LOCATION
107105
#define BOOST_BEAST_ASSIGN_EC(ec, error) ec = error
108106
#else
109-
110107
#define BOOST_BEAST_ASSIGN_EC(ec, error) \
111-
static constexpr auto BOOST_PP_CAT(loc_, __LINE__) ((BOOST_CURRENT_LOCATION)); \
112-
ec.assign(error, & BOOST_PP_CAT(loc_, __LINE__) )
113-
108+
do \
109+
{ \
110+
static constexpr auto loc__((BOOST_CURRENT_LOCATION)); \
111+
ec.assign(error, &loc__); \
112+
} \
113+
while (false)
114114
#endif
115115

116116
#ifndef BOOST_BEAST_FILE_BUFFER_SIZE

test/cmake_test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ else()
3636
logic
3737
mp11
3838
optional
39-
preprocessor
4039
smart_ptr
4140
static_string
4241
system
@@ -63,6 +62,7 @@ else()
6362
numeric/conversion
6463
range
6564
tokenizer
65+
preprocessor
6666
array
6767
concept_check
6868
exception

0 commit comments

Comments
 (0)