Convert code to use boost::beast

This commit is contained in:
seelabs
2018-04-17 14:56:24 -04:00
parent 2ac1c2b433
commit 27703859e7
71 changed files with 513 additions and 464 deletions

View File

@@ -358,6 +358,10 @@ macro(use_boost)
message(WARNING "Boost directory found, but not all components. May not be able to build.")
endif()
if(Boost_VERSION VERSION_LESS 106700)
message(FATAL_ERROR "Boost version 1.67 or greater is required for boost::beast. Found version: ${Boost_VERSION}")
endif()
if(MSVC14)
# VS2017 with boost <= 1.66.0 requires a flag to suppress warnings
if(NOT Boost_VERSION VERSION_GREATER 106600)
@@ -581,6 +585,8 @@ macro(setup_build_boilerplate)
-DSOCI_CXX_C11=1
-D_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS
-DBOOST_NO_AUTO_PTR
-DBOOST_BEAST_ALLOW_DEPRECATED
-DBOOST_ASIO_DISABLE_HANDLER_TYPE_REQUIREMENTS
)
if (is_gcc)