Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Test Programs

Table 38.1. Test programs provided with static_assert

Test Program

Expected to Compile

Description

static_assert_example_1.cpp

Platform dependent.

Namespace scope test program, may compile depending upon the platform.

static_assert_example_2.cpp

Yes

Function scope test program.

static_assert_example_3.cpp

Yes

Class scope test program.

static_assert_test.cpp

Yes

Illustrates usage, and should always compile, really just tests compiler compatibility.

static_assert_test_fail_1.cpp

No

Illustrates failure at namespace scope.

static_assert_test_fail_2.cpp

No

Illustrates failure at non-template function scope.

static_assert_test_fail_3.cpp

No

Illustrates failure at non-template class scope.

static_assert_test_fail_4.cpp

No

Illustrates failure at non-template class scope.

static_assert_test_fail_5.cpp

No

Illustrates failure at template class scope.

static_assert_test_fail_6.cpp

No

Illustrates failure at template class member function scope.

static_assert_test_fail_7.cpp

No

Illustrates failure of class scope example.

static_assert_test_fail_8.cpp

No

Illustrates failure of function scope example.

static_assert_test_fail_9.cpp

No

Illustrates failure of function scope example (part 2).



PrevUpHomeNext