Compare commits

..

1 Commits

Author SHA1 Message Date
e27d7faaf6 Branch for working on the documentation tools documentation.
[SVN r68640]
2011-02-04 21:18:24 +00:00
3 changed files with 19 additions and 18 deletions

View File

@ -118,13 +118,13 @@ namespace boost {
// operator[]
reference operator[](size_type i)
{
BOOST_ASSERT_MSG( i < N, "out of range" );
BOOST_ASSERT( i < N && "out of range" );
return elems[i];
}
const_reference operator[](size_type i) const
{
BOOST_ASSERT_MSG( i < N, "out of range" );
BOOST_ASSERT( i < N && "out of range" );
return elems[i];
}

View File

@ -15,11 +15,12 @@
#include <boost/array.hpp>
#include "print.hpp"
using namespace std;
using namespace boost;
int main()
{
// create and initialize array
boost::array<int,10> a = { { 1, 2, 3, 4, 5 } };
array<int,10> a = { { 1, 2, 3, 4, 5 } };
print_elements(a);