|
Boost-Commit : |
From: john_at_[hidden]
Date: 2008-02-21 11:51:41
Author: johnmaddock
Date: 2008-02-21 11:51:41 EST (Thu, 21 Feb 2008)
New Revision: 43358
URL: http://svn.boost.org/trac/boost/changeset/43358
Log:
Merge minor change from Trunk.
Text files modified:
branches/release/libs/static_assert/doc/static_assert.qbk | 15 ++++++++++++---
1 files changed, 12 insertions(+), 3 deletions(-)
Modified: branches/release/libs/static_assert/doc/static_assert.qbk
==============================================================================
--- branches/release/libs/static_assert/doc/static_assert.qbk (original)
+++ branches/release/libs/static_assert/doc/static_assert.qbk 2008-02-21 11:51:41 EST (Thu, 21 Feb 2008)
@@ -15,6 +15,10 @@
[last-revision $Date$]
]
+This manual is also available in
+[@http:svn.boost.org/svn/boost/sandbox/pdf/static_assert/release/static_assert.pdf
+printer friendly PDF format].
+
[section:intro Overview and Tutorial]
The header `<boost/static_assert.hpp>` supplies a single macro `BOOST_STATIC_ASSERT(x)`,
@@ -94,12 +98,17 @@
#include <boost/type_traits.hpp>
template <class RandomAccessIterator >
- RandomAccessIterator foo(RandomAccessIterator from, RandomAccessIterator to)
+ RandomAccessIterator foo(RandomAccessIterator from,
+ RandomAccessIterator to)
{
// this template can only be used with
// random access iterators...
- typedef typename std::iterator_traits< RandomAccessIterator >::iterator_category cat;
- BOOST_STATIC_ASSERT((boost::is_convertible<cat, const std::random_access_iterator_tag&>::value));
+ typedef typename std::iterator_traits<
+ RandomAccessIterator >::iterator_category cat;
+ BOOST_STATIC_ASSERT(
+ (boost::is_convertible<
+ cat,
+ const std::random_access_iterator_tag&>::value));
//
// detail goes here...
return from;
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk