Compare commits

..

8 Commits

Author SHA1 Message Date
fd84aacaae This commit was manufactured by cvs2svn to create tag
'Version_1_29_0'.

[SVN r15904]
2002-10-11 15:17:55 +00:00
95c719cc8c fixing a borland warning
[SVN r15810]
2002-10-08 19:24:36 +00:00
2ee381e6d5 bemans name typo fix + fix to get rid of a borland warning
[SVN r15809]
2002-10-08 18:46:12 +00:00
4dc42b5871 changes from trunk merged to enable MIPSpro compilations
[SVN r15699]
2002-10-03 23:23:54 +00:00
9fa5bc9c6c typo fixes
[SVN r15653]
2002-10-02 16:58:50 +00:00
124d3578a4 Fixes which make it possible to declare with reference elements
[SVN r15532]
2002-09-28 07:25:27 +00:00
a7c8f8f09b markus schöpflin's patch, some portability issues
[SVN r15467]
2002-09-20 16:03:05 +00:00
9c7d17e7a4 This commit was manufactured by cvs2svn to create branch 'RC_1_29_0'.
[SVN r15460]
2002-09-19 20:49:39 +00:00
8 changed files with 8 additions and 71 deletions

View File

@ -20,9 +20,7 @@ Suppose <code>T</code> is a tuple type, and <code>N</code> is a constant integra
<code><pre>element&lt;N, T&gt;::type</pre></code>
gives the type of the <code>N</code>th element in the tuple type <code>T</code>. If <code>T</code> is const, the resulting type is const qualified as well.
Note that the constness of <code>T</code> does not affect reference type
elements.
gives the type of the <code>N</code>th element in the tuple type <code>T</code>.
</p>
<code><pre>length&lt;T&gt;::value</pre></code>

View File

@ -97,7 +97,7 @@ tuple&lt;A*, tuple&lt;const A*, const B&amp;, C&gt;, bool, void*&gt;
<p>
The tuple constructor takes the tuple elements as arguments.
For an <i>n</i>-element tuple, the constructor can be invoked with <i>k</i> arguments, where 0 &lt;= <i>k</i> &lt;= <i>n</i>.
For an <i>n</i>-element tuple, the constructor can be invoked with <i>k</i> arguments, where 0 &lt; <i>k</i> &lt;= <i>n</i>.
For example:
<pre><code>tuple&lt;int, double&gt;()
tuple&lt;int, double&gt;(1)

View File

@ -153,21 +153,6 @@ struct element<0,T>
typedef typename T::head_type type;
};
template<int N, class T>
struct element<N, const T>
{
private:
typedef typename T::tail_type Next;
typedef typename element<N-1, Next>::type unqualified_type;
public:
typedef typename boost::add_const<unqualified_type>::type type;
};
template<class T>
struct element<0,const T>
{
typedef typename boost::add_const<typename T::head_type>::type type;
};
// -get function templates -----------------------------------------------
// Usage: get<N>(aTuple)

View File

@ -766,9 +766,6 @@ namespace tuples {
}
// "ignore" allows tuple positions to be ignored when using "tie".
namespace {
#if (defined(BOOST_MSVC) && BOOST_MSVC <= 1300) || (defined(__DECCXX_VER) && __DECCXX_VER <= 60590031)
static
#endif
detail::swallow_assign ignore;
}

View File

@ -86,9 +86,9 @@ public:
// parentheses and space are the default manipulators
if (!c) {
switch(m) {
case detail::format_info::open : c = '('; break;
case detail::format_info::close : c = ')'; break;
case detail::format_info::delimiter : c = ' '; break;
case open : c = '('; break;
case close : c = ')'; break;
case delimiter : c = ' '; break;
}
}
return c;
@ -109,9 +109,9 @@ public:
// parentheses and space are the default manipulators
if (!c) {
switch(m) {
case detail::format_info::open : c = i.widen('('); break;
case detail::format_info::close : c = i.widen(')'); break;
case detail::format_info::delimiter : c = i.widen(' '); break;
case open : c = i.widen('('); break;
case close : c = i.widen(')'); break;
case delimiter : c = i.widen(' '); break;
}
}
return c;
@ -438,9 +438,6 @@ extract_and_check_delimiter(
#if defined (BOOST_NO_STD_LOCALE)
const bool is_delimiter = !isspace(d);
#elif defined ( __BORLANDC__ )
const bool is_delimiter = !std::use_facet< std::ctype< CharType > >
(is.getloc() ).is( std::ctype_base::space, d);
#else
const bool is_delimiter = (!std::isspace(d, is.getloc()) );
#endif

View File

@ -1,17 +1,3 @@
// Copyright (C) 1999, 2000 Jaakko J<>rvi (jaakko.jarvi@cs.utu.fi)
//
// Permission to copy, use, sell and distribute this software is granted
// provided this copyright notice appears in all copies.
// Permission to modify the code and to distribute modified code is granted
// provided this copyright notice appears in all copies, and a notice
// that the code was modified is included with the copyright notice.
//
// This software is provided "as is" without express or implied warranty,
// and with no claim as to its suitability for any purpose.
// For more information, see http://www.boost.org
// another_test_bench.cpp --------------------------------
// This file has various tests to see that things that shouldn't

View File

@ -1,16 +1,3 @@
// Copyright (C) 1999, 2000 Jaakko J<>rvi (jaakko.jarvi@cs.utu.fi)
//
// Permission to copy, use, sell and distribute this software is granted
// provided this copyright notice appears in all copies.
// Permission to modify the code and to distribute modified code is granted
// provided this copyright notice appears in all copies, and a notice
// that the code was modified is included with the copyright notice.
//
// This software is provided "as is" without express or implied warranty,
// and with no claim as to its suitability for any purpose.
// For more information, see http://www.boost.org
// -- io_test.cpp -----------------------------------------------
//
// Testing the I/O facilities of tuples

View File

@ -1,16 +1,3 @@
// Copyright (C) 1999, 2000 Jaakko J<>rvi (jaakko.jarvi@cs.utu.fi)
//
// Permission to copy, use, sell and distribute this software is granted
// provided this copyright notice appears in all copies.
// Permission to modify the code and to distribute modified code is granted
// provided this copyright notice appears in all copies, and a notice
// that the code was modified is included with the copyright notice.
//
// This software is provided "as is" without express or implied warranty,
// and with no claim as to its suitability for any purpose.
// For more information, see http://www.boost.org
// tuple_test_bench.cpp --------------------------------
#define BOOST_INCLUDE_MAIN // for testing, include rather than link