mirror of
https://github.com/boostorg/utility.git
synced 2025-10-15 10:05:19 +02:00
Compare commits
26 Commits
svn-branch
...
svn-branch
Author | SHA1 | Date | |
---|---|---|---|
|
e2308ce3c9 | ||
|
c733d07560 | ||
|
d497ff80e7 | ||
|
bb3fffd929 | ||
|
928091779d | ||
|
fc960ec5ef | ||
|
e76c779b8c | ||
|
1a4aa43cad | ||
|
9ece1d1d4c | ||
|
12de918a3a | ||
|
882d38c2c7 | ||
|
33041ad664 | ||
|
6a2aa822f8 | ||
|
09ab16bfc1 | ||
|
ec46e40809 | ||
|
b3a971e7e9 | ||
|
7ddb559887 | ||
|
ea8c99b1d5 | ||
|
56b0846099 | ||
|
42e0001370 | ||
|
cd8f85afee | ||
|
bddd52c4b9 | ||
|
8f03aeac4e | ||
|
3bb2568fad | ||
|
01e91a3799 | ||
|
55f3c351a3 |
@@ -740,16 +740,26 @@ specialisation).</p>
|
|||||||
|
|
||||||
<p>Revised 01 September 2000</p>
|
<p>Revised 01 September 2000</p>
|
||||||
|
|
||||||
<p>
|
<p><EFBFBD> Copyright boost.org 2000. Permission to copy, use, modify,
|
||||||
Copyright 2000 Steve Cleary, Beman Dawes, Howard
|
sell and distribute this document is granted provided this
|
||||||
Hinnant and John Maddock. <br/>
|
copyright notice appears in all copies. This document is provided
|
||||||
Use, modification and distribution are subject to the
|
"as is" without express or implied warranty, and with
|
||||||
Boost Software License, Version 1.0.
|
no claim as to its suitability for any purpose.</p>
|
||||||
(See accompanying file LICENSE_1_0.txt
|
|
||||||
or copy at <a href="http://www.boost.org/LICENSE_1_0.txt">
|
<p>Based on contributions by Steve Cleary, Beman Dawes, Howard
|
||||||
http://www.boost.org/LICENSE_1_0.txt
|
Hinnant and John Maddock.</p>
|
||||||
</a>).
|
|
||||||
</p>
|
<p>Maintained by <a href="mailto:john@johnmaddock.co.uk">John
|
||||||
|
Maddock</a>, the latest version of this file can be found at <a
|
||||||
|
href="http://www.boost.org/">www.boost.org</a>, and the boost
|
||||||
|
discussion list at <a
|
||||||
|
href="http://www.yahoogroups.com/list/boost">www.yahoogroups.com/list/boost</a>.</p>
|
||||||
|
|
||||||
|
<p>.</p>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
@@ -366,18 +366,17 @@ David Vandevoorde and Nicolai M. Josuttis.
|
|||||||
<EM>C++ Templates: The Complete Guide</EM>.
|
<EM>C++ Templates: The Complete Guide</EM>.
|
||||||
Addison-Wesley, 2002.</DL>
|
Addison-Wesley, 2002.</DL>
|
||||||
|
|
||||||
<hr/>
|
|
||||||
<p>Copyright Jaakko Järvi, Jeremiah Willcock and Andrew Lumsdaine<BR>
|
|
||||||
|
|
||||||
|
|
||||||
|
<hr></hr>
|
||||||
|
|
||||||
|
<B>Contributed by:</B> <BR>
|
||||||
|
Jaakko Järvi, Jeremiah Willcock and Andrew Lumsdaine<BR>
|
||||||
<EM>{jajarvi|jewillco|lums}@osl.iu.edu</EM><BR>
|
<EM>{jajarvi|jewillco|lums}@osl.iu.edu</EM><BR>
|
||||||
Indiana University<BR>
|
Indiana University<BR>
|
||||||
Open Systems Lab<br/>
|
Open Systems Lab
|
||||||
Use, modification and distribution are subject to the
|
|
||||||
Boost Software License, Version 1.0.
|
|
||||||
(See accompanying file LICENSE_1_0.txt
|
|
||||||
or copy at <a href="http://www.boost.org/LICENSE_1_0.txt">
|
|
||||||
http://www.boost.org/LICENSE_1_0.txt
|
|
||||||
</a>).
|
|
||||||
</p>
|
|
||||||
<!--HTMLFOOT-->
|
<!--HTMLFOOT-->
|
||||||
<!--ENDHTML-->
|
<!--ENDHTML-->
|
||||||
<!--FOOTER-->
|
<!--FOOTER-->
|
||||||
|
@@ -1,13 +0,0 @@
|
|||||||
//Copyright (c) 2006-2008 Emil Dotchevski and Reverge Studios, Inc.
|
|
||||||
|
|
||||||
//Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
||||||
//file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
||||||
|
|
||||||
#ifndef UUID_1D94A7C6054E11DB9804B622A1EF5492
|
|
||||||
#define UUID_1D94A7C6054E11DB9804B622A1EF5492
|
|
||||||
|
|
||||||
#include <boost/exception/info_tuple.hpp>
|
|
||||||
#include <boost/exception/cloning.hpp>
|
|
||||||
#include <boost/throw_exception.hpp>
|
|
||||||
|
|
||||||
#endif
|
|
@@ -5,7 +5,7 @@
|
|||||||
// http://www.boost.org/LICENSE_1_0.txt)
|
// http://www.boost.org/LICENSE_1_0.txt)
|
||||||
//
|
//
|
||||||
// 21 Ago 2002 (Created) Fernando Cacciola
|
// 21 Ago 2002 (Created) Fernando Cacciola
|
||||||
// 18 Feb 2008 (Worked around compiler bugs, added initialized_value) Fernando Cacciola, Niels Dekker
|
// 30 Jan 2008 (Worked around compiler bugs, added initialized_value) Fernando Cacciola, Niels Dekker
|
||||||
//
|
//
|
||||||
#ifndef BOOST_UTILITY_VALUE_INIT_21AGO2002_HPP
|
#ifndef BOOST_UTILITY_VALUE_INIT_21AGO2002_HPP
|
||||||
#define BOOST_UTILITY_VALUE_INIT_21AGO2002_HPP
|
#define BOOST_UTILITY_VALUE_INIT_21AGO2002_HPP
|
||||||
@@ -18,7 +18,6 @@
|
|||||||
|
|
||||||
#include <boost/aligned_storage.hpp>
|
#include <boost/aligned_storage.hpp>
|
||||||
#include <boost/detail/workaround.hpp>
|
#include <boost/detail/workaround.hpp>
|
||||||
#include <boost/static_assert.hpp>
|
|
||||||
#include <boost/type_traits/cv_traits.hpp>
|
#include <boost/type_traits/cv_traits.hpp>
|
||||||
#include <boost/type_traits/alignment_of.hpp>
|
#include <boost/type_traits/alignment_of.hpp>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
@@ -76,9 +75,7 @@ class value_initialized
|
|||||||
|
|
||||||
value_initialized & operator=(value_initialized const & arg)
|
value_initialized & operator=(value_initialized const & arg)
|
||||||
{
|
{
|
||||||
// Assignment is only allowed when T is non-const.
|
this->data() = static_cast<T const &>( arg.data() );
|
||||||
BOOST_STATIC_ASSERT( ! is_const<T>::value );
|
|
||||||
*wrapper_address() = static_cast<wrapper const &>(*(arg.wrapper_address()));
|
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -21,15 +21,14 @@
|
|||||||
<a href="compressed_pair.htm">compressed_pair</a><br>
|
<a href="compressed_pair.htm">compressed_pair</a><br>
|
||||||
<a href="current_function.html">current_function</a><br>
|
<a href="current_function.html">current_function</a><br>
|
||||||
<a href="enable_if.html">enable_if</a><br>
|
<a href="enable_if.html">enable_if</a><br>
|
||||||
<a href="iterator_adaptors.htm">iterator_adaptors</a><br>
|
<a href="iterator_adaptors.htm">iterator_adaptors</a><br>
|
||||||
<a href="generator_iterator.htm">generator iterator adaptors</a><br>
|
|
||||||
<a href="operators.htm">operators</a><br>
|
<a href="operators.htm">operators</a><br>
|
||||||
<a href="throw_exception.html">throw_exception</a><br>
|
<a href="throw_exception.html">throw_exception</a><br>
|
||||||
<a href="utility.htm">utility</a><br>
|
<a href="utility.htm">utility</a><br>
|
||||||
<a href="value_init.htm">value_init</a></p>
|
<a href="value_init.htm">value_init</a></p>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
<hr>
|
<hr>
|
||||||
<p>© Copyright Beman Dawes, 2001</p>
|
<p><EFBFBD> Copyright Beman Dawes, 2001</p>
|
||||||
<p>Distributed under the Boost Software License, Version 1.0. (See
|
<p>Distributed under the Boost Software License, Version 1.0. (See
|
||||||
accompanying file <a href="../../LICENSE_1_0.txt">
|
accompanying file <a href="../../LICENSE_1_0.txt">
|
||||||
LICENSE_1_0.txt</a> or copy at
|
LICENSE_1_0.txt</a> or copy at
|
||||||
|
@@ -315,7 +315,7 @@ Last modified: Mon Aug 11 11:27:03 EST 2003
|
|||||||
<p><EFBFBD> Copyright 2003 The Trustees of Indiana University.
|
<p><EFBFBD> Copyright 2003 The Trustees of Indiana University.
|
||||||
Use, modification and distribution is subject to the Boost Software
|
Use, modification and distribution is subject to the Boost Software
|
||||||
License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
||||||
http:www.boost.org/LICENSE_1_0.txt)</p>
|
http://www.boost.org/LICENSE_1_0.txt)</p>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
// Test program for "boost/utility/value_init.hpp"
|
// Test program for "boost/utility/value_init.hpp"
|
||||||
//
|
//
|
||||||
// 21 Ago 2002 (Created) Fernando Cacciola
|
// 21 Ago 2002 (Created) Fernando Cacciola
|
||||||
// 18 Feb 2008 (Added tests regarding compiler issues and initialized_value) Fernando Cacciola, Niels Dekker
|
// 19 Jan 2008 (Added tests regarding compiler issues and initialized_value) Fernando Cacciola, Niels Dekker
|
||||||
|
|
||||||
#include <cstring> // For memcmp.
|
#include <cstring> // For memcmp.
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
@@ -305,10 +305,6 @@ int test_main(int, char **)
|
|||||||
boost::value_initialized<ArrayOfBytes> valueInitializedArrayOfBytes;
|
boost::value_initialized<ArrayOfBytes> valueInitializedArrayOfBytes;
|
||||||
BOOST_CHECK (std::memcmp(get(valueInitializedArrayOfBytes), zeroInitializedArrayOfBytes, sizeof(ArrayOfBytes)) == 0);
|
BOOST_CHECK (std::memcmp(get(valueInitializedArrayOfBytes), zeroInitializedArrayOfBytes, sizeof(ArrayOfBytes)) == 0);
|
||||||
|
|
||||||
boost::value_initialized<ArrayOfBytes> valueInitializedArrayOfBytes2;
|
|
||||||
valueInitializedArrayOfBytes2 = valueInitializedArrayOfBytes;
|
|
||||||
BOOST_CHECK (std::memcmp(get(valueInitializedArrayOfBytes), get(valueInitializedArrayOfBytes2), sizeof(ArrayOfBytes)) == 0);
|
|
||||||
|
|
||||||
boost::value_initialized<CopyFunctionCallTester> copyFunctionCallTester1;
|
boost::value_initialized<CopyFunctionCallTester> copyFunctionCallTester1;
|
||||||
BOOST_CHECK ( ! get(copyFunctionCallTester1).is_copy_constructed);
|
BOOST_CHECK ( ! get(copyFunctionCallTester1).is_copy_constructed);
|
||||||
BOOST_CHECK ( ! get(copyFunctionCallTester1).is_assignment_called);
|
BOOST_CHECK ( ! get(copyFunctionCallTester1).is_assignment_called);
|
||||||
|
Reference in New Issue
Block a user