Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

Release Notes

Release 1.0.1
Release 1.0.0
Release 0.5.0
Release 0.4.1
Release 0.4.0
Release 0.3.490
Release 0.3.469
Release 0.2.190
Release 0.1.126
Release 0.1.55
Release 0.1.50

This section contains notes on all releases of this library (from the latest to the oldest).

September 12, 2019

Cleanups and small fixes:

  1. Using std::uncaught_exceptions on C++17 compilers onward (instead of the now obsolete std::uncaught_exception).
  2. Fixed a few warnings.
  3. Removed linking to Boost.System (Boost.System is now a header-only library).
  4. Added this library to Boost's Continuous Integration (CI).
  5. Fixed documentation typos.

Released files are part of Boost 1.72.0.

January 6, 2018 (Il Giorno della Befana)

First Boost release:

  1. Fixed all tests to pass as Boost regression tests (and marked those that are expected to fail on some specific compiler/platform versions).
  2. Adjusted build scripts to work within Boost libraries.
  3. Updated documentation to fit as a Boost library.

Released files are part of Boost 1.67.0.

September 2, 2017

Contracts without the macros:

  1. Using plain C++ code instead of macros to program contracts.
    1. The removed macros very hard to use because they required programmers to learn a domain-specific embedded language that replaced the usual C++ syntax for declaring functions and classes.
    2. The removed macros also made the code less readable, increased compilation time (because of extensive preprocessor meta-programming), and gave cryptic compiler errors.
    3. However, the removed macros more correctly specified contracts in code declarations instead of definitions, and they completely removed extra code when contracts were disabled (both of those can be done by the current version of this library but at the cost of manually writing some boiler-plate code which was previous automatically handled by the macros instead, see Separate Body Implementation and Disable Contract Compilation).
  2. Simplified the library by removing some extra features that were not directly related to contract programming, specifically:
    1. Removed loop variants (because these are rarely if ever used).
    2. Removed named and deduced parameters (because these can be programmed directly using Boost.Parameter).
    3. Removed concepts (because these can be programmed directly using Boost.ConceptCheck).
    4. Removed emulation of virtual specifiers override, final, and new (because override can be programmed directly using C++11, while final and new are rarely if ever used).
    5. Removed static_assert emulation (because this can be programmed directly using C++11, or using Boost.StaticAssert).
  3. Ensuring that old values and return values are copied only once even when subcontracting is used with multiple inheritance.
  4. Improved template meta-programming algorithm that searches the inheritance tree for subcontracting when multiple inheritance is used.
  5. Exception specifications and function-try blocks apply also to exceptions thrown by the contracts, and not just to exceptions thrown by the body.
  6. Added contracts for exception guarantees (using .except(...), etc.).
  7. Added predefined assertion levels for "audit" and "axiom".
  8. Added call_if and condition_if (assertions requirements were supported also by previous revisions of this library but they were handled by internal code generated by the contract macros).

Released files.

[Note] Note

This revision of the library passed Boost formal review and it was accepted into the Boost libraries (see https://groups.google.com/forum/?fromgroups=#!topic/boost-list/jQ7OjAmos_Y).

August 20, 2012

Accepted into Boost:

  1. Using non-fix-spaced font in Full Table of Contents section.
  2. Added a couple of notes to the documentation.
  3. Changed CONTRACT_MEMBER_BODY(class_type, function_name) to class_type::CONTRACT_MEMBER_BODY(function_name) so the macro can also be used to declare derived classes avoiding using the library syntax even when the base class has contracts.

Released files.

June 4, 2012

Simplified syntax, added named parameters and concepts:

  1. Simplified syntax by reducing extra parenthesis to the bare necessary minimum (using some of the preprocessor parsing techniques originally introduced by Boost.LocalFunction).
  2. Postcondition old values only copy the old-of expression (e.g., copy just vector size instead of entire vector). This improves performance and introduces the ConstantCopyConstructible requirement just for the old value expression type (e.g., a vector might not be copyable while its size always is because it is an integral type). Removed the copyable tag.
  3. Body defined outside the macros (so compiler-errors for definitions retain their usual meaning).
  4. Added CONTRACT_CLASS macro and removed the need to duplicate declaration elements (do not repeat function declaration, do not repeat class name in function declaration, etc).
  5. Using _TPL macros so to reduce compile-time (instead of internally making all templates contract functions so to use typename freely).
  6. Overloading no longer requires unique parameter names.
  7. Added C++11-like virtual specifiers.
  8. Added constant assertions plus constant-expressions for select assertion if-conditions and for loop variants.
  9. Added named and deduced parameters.
  10. Added concept checking.
  11. Removed the interface to use the library without the macro (programmers were required to write too much boiler-plate code for the non-macro interface to be actually usable, plus supporting both the macro and non-macro interfaces limited what the macros could do).

Released files.

March 7, 2010

Support for most/all C++ constructs:

  1. Added support and examples for volatile, auto, explicit, export, extern, friend, inline, struct, and throw (for exception specifications).
  2. Documented that union cannot be contracted.

Released files.

February 21, 2010

Support for most/all contract programming features:

  1. Removed use of self, variable.now, and variable.old in writing contracts. Object this and variables are now accessed as usual in member functions. CONTRACT_OLDOF(variable) is used to access old values in postconditions.
  2. Added (precondition), (postcondition), and (body) to specify contracts within the function signature sequence. If no preconditions then (precondition) ({...}) is simply omitted from the sequence (same for postconditions, body is mandatory instead). For non-void functions, users can name the result argument with (postcondition) (result-name) ({...}).
  3. Changed contract class template to use same syntax as Boost.Function (i.e., F function type).
  4. Added support for free functions and static member functions.
  5. Added support for subcontracting with multiple inheritance.
  6. Added static class invariants which are always checked (also at constructors entry, destructor exit, and by static member functions).
  7. Added block invariants and Eiffel-like loop variants.
  8. Added handlers to customize action on contract failure (default to std::terminate()).
  9. Removed feature for automatic contract documentation using Doxygen (this is not compatible with added (precondition), (postcondition), and (body) because Doxygen preprocessor is not capable to handle Boost.Preprocessor sequences).
  10. Rewritten entire documentation (now using Boost.QuickBook instead of Doxygen).

Released files.

November 21, 2009

Compiled on both GCC and MSVC:

  1. Compiled using both GCC (Linux and Cygwin) and MSVC (Windows XP).
  2. Required to use void to specify empty function argument list. This is to comply with C++03 standard that does not allow to pass empty macro parameters so it does not support empty preprocessor sequences ().

Released files.

June 17, 2009

Added documentation:

  1. Completed first documentation draft.

Released files.

April 19, 2009

Cleaned-up first release:

  1. Reorganized files to cleanup root directory.
  2. Added installation program.

Released files.

April 19, 2009

First release:

  1. First public release.

Released files.


PrevUpHomeNext