Merged array changes from trunk to release; Fixes #3893 and #3168

[SVN r60824]
This commit is contained in:
Marshall Clow
2010-03-25 15:32:12 +00:00
parent 88868ba0df
commit 0c8902e8c2
2 changed files with 26 additions and 5 deletions

View File

@ -32,7 +32,7 @@ void RunTests()
test_type test_case = {};
const boost::array< T, 0 > const_test_case = test_type();
test_case.assign( T() );
test_case.fill ( T() );
// front/back and operator[] must compile, but calling them is undefined
// Likewise, all tests below should evaluate to false, avoiding undefined behaviour