Boost logo

Boost-Commit :

From: john_at_[hidden]
Date: 2008-02-21 11:50:00


Author: johnmaddock
Date: 2008-02-21 11:49:59 EST (Thu, 21 Feb 2008)
New Revision: 43357
URL: http://svn.boost.org/trac/boost/changeset/43357

Log:
Added link to PDF docs.
Text files modified:
   trunk/libs/static_assert/doc/static_assert.qbk | 15 ++++++++++++---
   1 files changed, 12 insertions(+), 3 deletions(-)

Modified: trunk/libs/static_assert/doc/static_assert.qbk
==============================================================================
--- trunk/libs/static_assert/doc/static_assert.qbk (original)
+++ trunk/libs/static_assert/doc/static_assert.qbk 2008-02-21 11:49:59 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