-
Notifications
You must be signed in to change notification settings - Fork 0
/
README-DEV
60 lines (51 loc) · 1.79 KB
/
README-DEV
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
1. Boost dependencies
Personally I found the online documentation to be unclear on this question, so
here are the facts based on the source code and the upstream build.
The source code includes headers (conditionally) from the following Boost
libraries:
Boost.Align
Boost.Array
Boost.Assert
Boost.Bind
Boost.Chrono
Boost.Config
Boost.Context
Boost.Coroutine
Boost.DateTime
Boost.Detail
Boost.Exception
Boost.Function
Boost.Limits
Boost.MakeShared
Boost.Regex
Boost.SmartPtr
Boost.ThrowException
Boost.TypeTraits
Boost.Units
Boost.Utility
Most, but not all, of the Boost dependencies have a user-visible controlling
macro, ASIO_DISABLE_BOOST_<library>.
If Asio is built in standalone mode (which is turned on automatically if a
C++11-capable compiler is detected) "most of Asio may now be used without a
dependency on Boost header files or libraries". Note that "standalone mode" is
not the same as a "non-Boost version of the library". In other words, the
non-Boost version of the library can in turn be in standalone mode.
In standalone mode most of the Boost dependencies are disabled directly via
their controlling macros (in asio/detail/config.hpp), but the following ones
are not:
Boost.Context
Boost.Coroutine
Boost.Detail
Boost.Exception
Boost.Function
Boost.SmartPtr
Boost.TypeTraits
Boost.Utility
Some of these are enabled based on platform and feature check macros. For
example, Boost.TypeTraits headers will be included if <type_traits> is not
available. Others, like Boost.Coroutine, can be controlled independently of
ASIO_STANDALONE (in this case via ASIO_DISABLE_BOOST_COROUTINE or the upstream
--enable-boost-coroutine configure option).
Currently we force the standalone mode and then disable the rest of the Boost
dependencies. Currently this is not configurable but in the future we may
change that.