as_literal()
can be used internally in string
- algorithm librararies to such that arrays of characters are
+ algorithm librararies such that arrays of characters are
handled correctly.
diff --git a/doc/history_ack.html b/doc/history_ack.html index 40ee5dc..289bfa8 100755 --- a/doc/history_ack.html +++ b/doc/history_ack.html @@ -18,10 +18,10 @@
- The library have been under way for a long time. Dietmar Kühl originally
- intended to submit an array_traits
class template which
- had most of the functionality present now, but only for arrays and standard
- containers.
+ The library was under way for a long time. Dietmar Kühl originally intended
+ to submit an array_traits
class template which had most of
+ the functionality present now, but only for arrays and standard containers.
+ I believe this was back in 2001 or 2002.
diff --git a/doc/intro.html b/doc/intro.html index 8478d3e..4ed653b 100755 --- a/doc/intro.html +++ b/doc/intro.html @@ -63,8 +63,7 @@ free-standing functions so syntactic and/or semantic differences can be removed.
-- Below are given a small example (the complete example can be found Below is given a small example (the complete example can be found here):
diff --git a/doc/portability.html b/doc/portability.html
index 20b1355..506d5b2 100755
--- a/doc/portability.html
+++ b/doc/portability.html
@@ -35,7 +35,7 @@ href="http://boost.sourceforge.net/regression-logs/developer/range.html">here
Notice also that some compilers cannot do function template ordering properly.
- In that case one must rely of range_iterator
and a single function definition instead of overloaded versions for const and
non-const arguments.
diff --git a/doc/utility_class.html b/doc/utility_class.html
index f7b5535..c4afe54 100644
--- a/doc/utility_class.html
+++ b/doc/utility_class.html
@@ -33,11 +33,12 @@
- The iterator_range
class is templated on an
- Forward
+ The iterator_range
class is templated on a Forward
Traversal Iterator and should be used whenever fairly general code is needed.
- The sub_range
class is templated on an Forward
- Range and it is less general, but a bit easier to use since its template
+ The sub_range
class is templated on a Forward Range and it is less general,
+ but a bit easier to use since its template
argument is easier to specify. The biggest difference is, however, that a
sub_range
can propagate constness because it knows what a
corresponding const_iterator
is.
diff --git a/include/boost/range/as_literal.hpp b/include/boost/range/as_literal.hpp
index 72f0eb5..b0d7593 100755
--- a/include/boost/range/as_literal.hpp
+++ b/include/boost/range/as_literal.hpp
@@ -15,7 +15,7 @@
# pragma once
#endif
-#if BOOST_NO_FUNCTION_TEMPLATE_ORDERING
+#ifdef BOOST_NO_FUNCTION_TEMPLATE_ORDERING
#include
#else
@@ -116,14 +116,14 @@ namespace boost
template< class Char, std::size_t sz >
- inline iterator_range as_literal( const Char (&arr)[sz] )
+ inline iterator_range as_literal( const Char (&arr)[sz] )
{
#if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x590)) && __BORLANDC__ >= 0x590
return boost::make_iterator_range( arr, arr + sz - 1 );
#else
return boost::make_iterator_range( arr, arr + sz - 1 );
#endif
- }
+ }
}
#endif // BOOST_NO_FUNCTION_TEMPLATE_ORDERING