#boost #compat #component #standard #c-11 #zanbil

sys boost_compat

Boost C++ library boost_compat packaged using Zanbil

1 unstable release

Uses new Rust 2024

0.1.0 Aug 30, 2025

#3 in #compat

BSL-1.0 license

310KB
7K SLoC

C++ 6K SLoC // 0.0% comments AsciiDoc 1K SLoC // 0.1% comments Batch 20 SLoC Shell 20 SLoC // 0.2% comments Rust 4 SLoC

Boost.Compat

Boost.Compat is a repository of C++11 implementations of standard components added in later C++ standards. Its target audience is Boost library authors whose libraries support a lower C++ standard, but wish to utilize a component added in a subsequent one.

The criteria for inclusion in Boost.Compat are as follows:

  • The implementation should be relatively simple and header-only.
  • The component must implement the standard functionality exactly, without deviations or extensions. This allows (but does not require) the implementation to be a simple using declaration in case the standard component is available.
  • The component must not depend on any Boost libraries except Boost.Config, Boost.Assert, or Boost.ThrowException.
  • The component must not be a vocabulary type, visible in the library APIs. The user should never see a boost::compat type; the use of Compat types should be confined to library implementations.

Dependencies

~1–1.6MB
~32K SLoC