9
3

8_conf_macros.qbk 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. [/
  2. Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com)
  3. Distributed under the Boost Software License, Version 1.0. (See accompanying
  4. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. Official repository: https://github.com/boostorg/beast
  6. ]
  7. [section Configuration preprocessor definitions]
  8. A number of configuration preprocessor definitions can be used to change
  9. the behavior of Beast.
  10. The user should assume that they introduce significant changes to the public part
  11. of this library's API and make sure that all translation units (usually files)
  12. compiled and linked into a program use the same combination of configuration macros,
  13. failure to do so may result in violations of ODR (One Definition Rule).
  14. [table Special Fields
  15. [[Definition][Description]]
  16. [
  17. [
  18. BOOST_BEAST_USE_STD_STRING_VIEW
  19. ][
  20. Causes Beast to use std::string_view instead of boost::string_view.
  21. Requires C++17.
  22. ]
  23. ]
  24. [
  25. [
  26. BOOST_BEAST_SEPARATE_COMPILATION
  27. ][
  28. Enables the split compilation mode, which allows the user to compile
  29. definitions of non-template entities in a single translation unit, thus
  30. improving compilation speed. That translation unit has to include
  31. boost/beast/src.hpp in order to compile the definitions.
  32. ]
  33. ]
  34. [
  35. [
  36. BOOST_BEAST_ALLOW_DEPRECATED
  37. ][
  38. Enables the use of deprecated APIs within Beast.
  39. ]
  40. ]
  41. ]