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 an old version of boost. Click here for the latest version's documentation home page.
Testsuite
c++boost.gif (8819 bytes)HomeLibrariesPeopleFAQMore

Testsuite

Acceptance tests
Negative tests

Acceptance tests

TestTypeDescriptionIf failing...

function_test.cpp

run

Test the capabilities of the boost::function class template.

The boost::function class template may not be usable on your compiler. However, the library may still be usable via the boost::functionN class templates.

function_n_test.cpp

run

Test the capabilities of the boost::functionN class templates.

 

allocator_test.cpp

run

Test the use of custom allocators.

Allocators are ignored by the implementation.

stateless_test.cpp

run

Test the optimization of stateless function objects in the Boost.Function library.

The exception-safety and performance guarantees given for stateless function objects may not be met by the implementation.

lambda_test.cpp

run

Test the interaction between Boost.Function and Boost.Lambda.

Either Boost.Lambda does not work on the platform, or Boost.Function cannot safely be applied without the use of boost::unlambda.

function_30.cpp

compile

Test the generation of a Boost.Function function object adaptor accepting 30 arguments.

The Boost.Function library may work for function object adaptors of up to 10 parameters, but will be unable to generate adaptors for an arbitrary number of parameters. Failure often indicates an error in the compiler's preprocessor.

function_arith_cxx98.cpp

run

Test the first tutorial example.

 

function_arith_portable.cpp

run

Test the first tutorial example.

 

sum_avg_cxx98.cpp

run

Test the second tutorial example.

 

sum_avg_portable.cpp

run

Test the second tutorial example.

 

mem_fun_cxx98.cpp

run

Test member function example from tutorial.

 

mem_fun_portable.cpp

run

Test member function example from tutorial.

 

std_bind_cxx98.cpp

run

Test standard binders example from tutorial.

 

std_bind_portable.cpp

run

Test standard binders example from tutorial.

 

function_ref_cxx98.cpp

run

Test boost::ref example from tutorial.

 

function_ref_portable.cpp

run

Test boost::ref example from tutorial.

 

Negative tests

TestTypeDescriptionIf failing...

function_test_fail1.cpp

compile-fail

Test the (incorrect!) use of comparisons between Boost.Function function objects.

Intuitive (but incorrect!) code may compile and will give meaningless results.

function_test_fail2.cpp

compile-fail

Test the use of an incompatible function object with Boost.Function

Incorrect code may compile (with potentially unexpected results).

Last revised: , at GMTCopyright © 2001-2003 Douglas Gregor