Which Boost libraries are header-only?

后端 未结 3 1241
时光取名叫无心
时光取名叫无心 2020-11-28 05:17

Which Boost libraries are header-only? And which require building libraries?

Does such a list exist?

3条回答
  •  囚心锁ツ
    2020-11-28 05:21

    The list of libraries that require building is here for Unix-like systems, and here for Windows.

    For the current release, 1.58, both are the same:

    • Boost.Chrono
    • Boost.Context
    • Boost.Filesystem
    • Boost.GraphParallel
    • Boost.IOStreams
    • Boost.Locale
    • Boost.MPI
    • Boost.ProgramOptions
    • Boost.Python
    • Boost.Regex
    • Boost.Serialization
    • Boost.Signals
    • Boost.System
    • Boost.Thread
    • Boost.Timer
    • Boost.Wave

    A few libraries have optional separately-compiled binaries:

    • Boost.DateTime
    • Boost.Graph
    • Boost.Math
    • Boost.Random
    • Boost.Test
    • Boost.Exception

    Note that some libraries may depend on these (for example, Asio depends on System as pointed out in the comments), so you may still need to build something even if the library you want isn't on the list.

提交回复
热议问题