|
Boost-Commit : |
From: ramey_at_[hidden]
Date: 2008-06-21 21:06:20
Author: ramey
Date: 2008-06-21 21:06:16 EDT (Sat, 21 Jun 2008)
New Revision: 46597
URL: http://svn.boost.org/trac/boost/changeset/46597
Log:
included cstddef to define null_deleter
added BOOST_USED to accommodate Intel compilers
Text files modified:
trunk/boost/archive/codecvt_null.hpp | 2 +-
trunk/boost/archive/detail/archive_pointer_iserializer.hpp | 1 +
trunk/boost/archive/detail/basic_oarchive.hpp | 1 +
trunk/boost/archive/detail/basic_oserializer.hpp | 2 +-
trunk/boost/archive/detail/basic_serializer.hpp | 1 +
trunk/boost/archive/detail/interface_iarchive.hpp | 1 +
trunk/boost/archive/detail/interface_oarchive.hpp | 1 +
trunk/boost/archive/detail/iserializer.hpp | 2 +-
trunk/boost/archive/detail/oserializer.hpp | 1 +
trunk/boost/archive/impl/basic_binary_iprimitive.ipp | 2 +-
trunk/boost/archive/impl/basic_binary_oprimitive.ipp | 1 +
trunk/boost/archive/impl/basic_text_iprimitive.ipp | 1 +
trunk/boost/archive/impl/basic_text_oprimitive.ipp | 1 +
trunk/boost/archive/impl/basic_xml_iarchive.ipp | 1 +
trunk/boost/archive/impl/basic_xml_oarchive.ipp | 1 +
trunk/boost/archive/impl/text_iarchive_impl.ipp | 2 +-
trunk/boost/archive/impl/text_wiarchive_impl.ipp | 2 +-
trunk/boost/archive/impl/xml_iarchive_impl.ipp | 1 +
trunk/boost/archive/iterators/escape.hpp | 1 +
trunk/boost/archive/iterators/istream_iterator.hpp | 1 +
trunk/boost/archive/shared_ptr_helper.hpp | 1 +
trunk/boost/archive/tmpdir.hpp | 1 +
trunk/boost/serialization/export.hpp | 1 +
trunk/boost/serialization/extended_type_info.hpp | 1 +
trunk/boost/serialization/factory.hpp | 1 +
trunk/boost/serialization/shared_ptr.hpp | 1 +
trunk/boost/serialization/shared_ptr_132.hpp | 1 +
trunk/boost/serialization/singleton.hpp | 6 ++++--
trunk/boost/serialization/void_cast_fwd.hpp | 1 +
trunk/boost/smart_cast.hpp | 1 +
30 files changed, 33 insertions(+), 8 deletions(-)
Modified: trunk/boost/archive/codecvt_null.hpp
==============================================================================
--- trunk/boost/archive/codecvt_null.hpp (original)
+++ trunk/boost/archive/codecvt_null.hpp 2008-06-21 21:06:16 EDT (Sat, 21 Jun 2008)
@@ -17,7 +17,7 @@
// See http://www.boost.org for updates, documentation, and revision history.
#include <locale>
-#include <cstddef>
+#include <cstddef> // NULL
#include <cwchar> // for mbstate_t
#include <boost/config.hpp>
#include <boost/archive/detail/auto_link_archive.hpp>
Modified: trunk/boost/archive/detail/archive_pointer_iserializer.hpp
==============================================================================
--- trunk/boost/archive/detail/archive_pointer_iserializer.hpp (original)
+++ trunk/boost/archive/detail/archive_pointer_iserializer.hpp 2008-06-21 21:06:16 EDT (Sat, 21 Jun 2008)
@@ -17,6 +17,7 @@
// See http://www.boost.org for updates, documentation, and revision history.
#include <cassert>
+#include <cstddef> // NULL
#include <boost/config.hpp>
#include <boost/detail/workaround.hpp>
Modified: trunk/boost/archive/detail/basic_oarchive.hpp
==============================================================================
--- trunk/boost/archive/detail/basic_oarchive.hpp (original)
+++ trunk/boost/archive/detail/basic_oarchive.hpp 2008-06-21 21:06:16 EDT (Sat, 21 Jun 2008)
@@ -17,6 +17,7 @@
// See http://www.boost.org for updates, documentation, and revision history.
#include <boost/config.hpp>
+#include <cstddef> // NULL
#include <boost/type_traits/broken_compiler_spec.hpp>
// can't use this - much as I'd like to as borland doesn't support it
Modified: trunk/boost/archive/detail/basic_oserializer.hpp
==============================================================================
--- trunk/boost/archive/detail/basic_oserializer.hpp (original)
+++ trunk/boost/archive/detail/basic_oserializer.hpp 2008-06-21 21:06:16 EDT (Sat, 21 Jun 2008)
@@ -16,7 +16,7 @@
// See http://www.boost.org for updates, documentation, and revision history.
-#include <cstdlib> // NULL
+#include <cstddef> // NULL
#include <boost/config.hpp>
#include <boost/archive/detail/auto_link_archive.hpp>
Modified: trunk/boost/archive/detail/basic_serializer.hpp
==============================================================================
--- trunk/boost/archive/detail/basic_serializer.hpp (original)
+++ trunk/boost/archive/detail/basic_serializer.hpp 2008-06-21 21:06:16 EDT (Sat, 21 Jun 2008)
@@ -17,6 +17,7 @@
// See http://www.boost.org for updates, documentation, and revision history.
#include <cassert>
+#include <cstddef> // NULL
#include <boost/noncopyable.hpp>
#include <boost/config.hpp>
Modified: trunk/boost/archive/detail/interface_iarchive.hpp
==============================================================================
--- trunk/boost/archive/detail/interface_iarchive.hpp (original)
+++ trunk/boost/archive/detail/interface_iarchive.hpp 2008-06-21 21:06:16 EDT (Sat, 21 Jun 2008)
@@ -16,6 +16,7 @@
// See http://www.boost.org for updates, documentation, and revision history.
#include <string>
+#include <cstddef> // NULL
#include <boost/cstdint.hpp>
#include <boost/mpl/bool.hpp>
#include <boost/archive/detail/auto_link_archive.hpp>
Modified: trunk/boost/archive/detail/interface_oarchive.hpp
==============================================================================
--- trunk/boost/archive/detail/interface_oarchive.hpp (original)
+++ trunk/boost/archive/detail/interface_oarchive.hpp 2008-06-21 21:06:16 EDT (Sat, 21 Jun 2008)
@@ -16,6 +16,7 @@
// See http://www.boost.org for updates, documentation, and revision history.
#include <string>
+#include <cstddef> // NULL
#include <boost/cstdint.hpp>
#include <boost/mpl/bool.hpp>
Modified: trunk/boost/archive/detail/iserializer.hpp
==============================================================================
--- trunk/boost/archive/detail/iserializer.hpp (original)
+++ trunk/boost/archive/detail/iserializer.hpp 2008-06-21 21:06:16 EDT (Sat, 21 Jun 2008)
@@ -24,7 +24,7 @@
#include <new> // for placement new
#include <memory> // for auto_ptr
-#include <cstddef> // size_t
+#include <cstddef> // size_t, NULL
#include <boost/config.hpp>
#include <boost/detail/workaround.hpp>
Modified: trunk/boost/archive/detail/oserializer.hpp
==============================================================================
--- trunk/boost/archive/detail/oserializer.hpp (original)
+++ trunk/boost/archive/detail/oserializer.hpp 2008-06-21 21:06:16 EDT (Sat, 21 Jun 2008)
@@ -23,6 +23,7 @@
// See http://www.boost.org for updates, documentation, and revision history.
#include <cassert>
+#include <cstddef> // NULL
#include <boost/config.hpp>
#include <boost/detail/workaround.hpp>
Modified: trunk/boost/archive/impl/basic_binary_iprimitive.ipp
==============================================================================
--- trunk/boost/archive/impl/basic_binary_iprimitive.ipp (original)
+++ trunk/boost/archive/impl/basic_binary_iprimitive.ipp 2008-06-21 21:06:16 EDT (Sat, 21 Jun 2008)
@@ -9,7 +9,7 @@
// See http://www.boost.org for updates, documentation, and revision history.
#include <cassert>
-#include <cstddef> // size_t
+#include <cstddef> // size_t, NULL
#include <cstring> // memcpy
#include <boost/config.hpp>
Modified: trunk/boost/archive/impl/basic_binary_oprimitive.ipp
==============================================================================
--- trunk/boost/archive/impl/basic_binary_oprimitive.ipp (original)
+++ trunk/boost/archive/impl/basic_binary_oprimitive.ipp 2008-06-21 21:06:16 EDT (Sat, 21 Jun 2008)
@@ -9,6 +9,7 @@
// See http://www.boost.org for updates, documentation, and revision history.
#include <ostream>
+#include <cstddef> // NULL
#include <cstring>
#include <boost/config.hpp>
Modified: trunk/boost/archive/impl/basic_text_iprimitive.ipp
==============================================================================
--- trunk/boost/archive/impl/basic_text_iprimitive.ipp (original)
+++ trunk/boost/archive/impl/basic_text_iprimitive.ipp 2008-06-21 21:06:16 EDT (Sat, 21 Jun 2008)
@@ -9,6 +9,7 @@
// See http://www.boost.org for updates, documentation, and revision history.
#include <cstddef> // size_t
+#include <cstddef> // NULL
#include <boost/config.hpp>
#if defined(BOOST_NO_STDC_NAMESPACE)
Modified: trunk/boost/archive/impl/basic_text_oprimitive.ipp
==============================================================================
--- trunk/boost/archive/impl/basic_text_oprimitive.ipp (original)
+++ trunk/boost/archive/impl/basic_text_oprimitive.ipp 2008-06-21 21:06:16 EDT (Sat, 21 Jun 2008)
@@ -8,6 +8,7 @@
// See http://www.boost.org for updates, documentation, and revision history.
+#include <cstddef> // NULL
#include <boost/pfto.hpp>
#include <boost/archive/basic_text_oprimitive.hpp>
Modified: trunk/boost/archive/impl/basic_xml_iarchive.ipp
==============================================================================
--- trunk/boost/archive/impl/basic_xml_iarchive.ipp (original)
+++ trunk/boost/archive/impl/basic_xml_iarchive.ipp 2008-06-21 21:06:16 EDT (Sat, 21 Jun 2008)
@@ -9,6 +9,7 @@
// See http://www.boost.org for updates, documentation, and revision history.
#include <cassert>
+#include <cstddef> // NULL
#include <algorithm>
#include <boost/throw_exception.hpp>
Modified: trunk/boost/archive/impl/basic_xml_oarchive.ipp
==============================================================================
--- trunk/boost/archive/impl/basic_xml_oarchive.ipp (original)
+++ trunk/boost/archive/impl/basic_xml_oarchive.ipp 2008-06-21 21:06:16 EDT (Sat, 21 Jun 2008)
@@ -9,6 +9,7 @@
// See http://www.boost.org for updates, documentation, and revision history.
#include <algorithm>
+#include <cstddef> // NULL
#include <cstring>
#if defined(BOOST_NO_STDC_NAMESPACE) && ! defined(__LIBCOMO__)
namespace std{
Modified: trunk/boost/archive/impl/text_iarchive_impl.ipp
==============================================================================
--- trunk/boost/archive/impl/text_iarchive_impl.ipp (original)
+++ trunk/boost/archive/impl/text_iarchive_impl.ipp 2008-06-21 21:06:16 EDT (Sat, 21 Jun 2008)
@@ -12,7 +12,7 @@
// implementation of basic_text_iprimitive overrides for the combination
// of template parameters used to implement a text_iprimitive
-#include <cstddef> // size_t
+#include <cstddef> // size_t, NULL
#include <boost/config.hpp>
#if defined(BOOST_NO_STDC_NAMESPACE)
namespace std{
Modified: trunk/boost/archive/impl/text_wiarchive_impl.ipp
==============================================================================
--- trunk/boost/archive/impl/text_wiarchive_impl.ipp (original)
+++ trunk/boost/archive/impl/text_wiarchive_impl.ipp 2008-06-21 21:06:16 EDT (Sat, 21 Jun 2008)
@@ -8,7 +8,7 @@
// See http://www.boost.org for updates, documentation, and revision history.
-#include <cstddef> // size_t
+#include <cstddef> // size_t, NULL
#include <boost/config.hpp>
#if defined(BOOST_NO_STDC_NAMESPACE)
Modified: trunk/boost/archive/impl/xml_iarchive_impl.ipp
==============================================================================
--- trunk/boost/archive/impl/xml_iarchive_impl.ipp (original)
+++ trunk/boost/archive/impl/xml_iarchive_impl.ipp 2008-06-21 21:06:16 EDT (Sat, 21 Jun 2008)
@@ -10,6 +10,7 @@
#include <boost/config.hpp>
#include <cstring> // memcpy
+#include <cstddef> // NULL
#if defined(BOOST_NO_STDC_NAMESPACE)
namespace std{
using ::memcpy;
Modified: trunk/boost/archive/iterators/escape.hpp
==============================================================================
--- trunk/boost/archive/iterators/escape.hpp (original)
+++ trunk/boost/archive/iterators/escape.hpp 2008-06-21 21:06:16 EDT (Sat, 21 Jun 2008)
@@ -17,6 +17,7 @@
// See http://www.boost.org for updates, documentation, and revision history.
#include <cassert>
+#include <cstddef> // NULL
#include <boost/config.hpp> // for BOOST_DEDUCED_TYPENAME
#include <boost/iterator/iterator_adaptor.hpp>
Modified: trunk/boost/archive/iterators/istream_iterator.hpp
==============================================================================
--- trunk/boost/archive/iterators/istream_iterator.hpp (original)
+++ trunk/boost/archive/iterators/istream_iterator.hpp 2008-06-21 21:06:16 EDT (Sat, 21 Jun 2008)
@@ -21,6 +21,7 @@
// for wchar_t based streams on systems for which wchar_t not a true
// type but rather a synonym for some integer type.
+#include <cstddef> // NULL
#include <istream>
#include <boost/iterator/iterator_facade.hpp>
Modified: trunk/boost/archive/shared_ptr_helper.hpp
==============================================================================
--- trunk/boost/archive/shared_ptr_helper.hpp (original)
+++ trunk/boost/archive/shared_ptr_helper.hpp 2008-06-21 21:06:16 EDT (Sat, 21 Jun 2008)
@@ -18,6 +18,7 @@
#include <map>
#include <list>
+#include <cstddef> // NULL
#include <boost/config.hpp>
#include <boost/shared_ptr.hpp>
Modified: trunk/boost/archive/tmpdir.hpp
==============================================================================
--- trunk/boost/archive/tmpdir.hpp (original)
+++ trunk/boost/archive/tmpdir.hpp 2008-06-21 21:06:16 EDT (Sat, 21 Jun 2008)
@@ -17,6 +17,7 @@
// See http://www.boost.org for updates, documentation, and revision history.
#include <cstdlib> // getenv
+#include <cstddef> // NULL
#include <cassert>
#include <boost/config.hpp>
Modified: trunk/boost/serialization/export.hpp
==============================================================================
--- trunk/boost/serialization/export.hpp (original)
+++ trunk/boost/serialization/export.hpp 2008-06-21 21:06:16 EDT (Sat, 21 Jun 2008)
@@ -22,6 +22,7 @@
// that are to be serialized through pointers.
#include <utility>
+#include <cstddef> // NULL
#include <boost/config.hpp>
#include <boost/static_assert.hpp>
Modified: trunk/boost/serialization/extended_type_info.hpp
==============================================================================
--- trunk/boost/serialization/extended_type_info.hpp (original)
+++ trunk/boost/serialization/extended_type_info.hpp 2008-06-21 21:06:16 EDT (Sat, 21 Jun 2008)
@@ -20,6 +20,7 @@
// this could change in the future.
#include <cstdarg>
#include <cassert>
+#include <cstddef> // NULL
#include <boost/config.hpp>
#include <boost/serialization/config.hpp>
Modified: trunk/boost/serialization/factory.hpp
==============================================================================
--- trunk/boost/serialization/factory.hpp (original)
+++ trunk/boost/serialization/factory.hpp 2008-06-21 21:06:16 EDT (Sat, 21 Jun 2008)
@@ -17,6 +17,7 @@
// See http://www.boost.org for updates, documentation, and revision history.
#include <cstdarg>
+#include <cstddef> // NULL
#include <boost/preprocessor/control/if.hpp>
#include <boost/preprocessor/comparison/greater.hpp>
Modified: trunk/boost/serialization/shared_ptr.hpp
==============================================================================
--- trunk/boost/serialization/shared_ptr.hpp (original)
+++ trunk/boost/serialization/shared_ptr.hpp 2008-06-21 21:06:16 EDT (Sat, 21 Jun 2008)
@@ -17,6 +17,7 @@
// See http://www.boost.org for updates, documentation, and revision history.
#include <map>
+#include <cstddef> // NULL
#include <boost/config.hpp>
#include <boost/mpl/integral_c.hpp>
Modified: trunk/boost/serialization/shared_ptr_132.hpp
==============================================================================
--- trunk/boost/serialization/shared_ptr_132.hpp (original)
+++ trunk/boost/serialization/shared_ptr_132.hpp 2008-06-21 21:06:16 EDT (Sat, 21 Jun 2008)
@@ -23,6 +23,7 @@
#include <boost/config.hpp>
#include <list>
+#include <cstddef> // NULL
#include <boost/serialization/assume_abstract.hpp>
#include <boost/serialization/split_free.hpp>
Modified: trunk/boost/serialization/singleton.hpp
==============================================================================
--- trunk/boost/serialization/singleton.hpp (original)
+++ trunk/boost/serialization/singleton.hpp 2008-06-21 21:06:16 EDT (Sat, 21 Jun 2008)
@@ -67,7 +67,9 @@
// make a singleton to lock/unlock all singletons for alteration.
// The intent is that all singletons created/used by this code
// are to be initialized before main is called. A test program
-// can lock all the single
+// can lock all the singletons when main is entereed. This any
+// attempt to retieve a mutable instances while locked will
+// generate a assertion if compiled for debug.
class singleton_module : public boost::noncopyable
{
@@ -98,7 +100,7 @@
BOOST_DLLEXPORT static T & instance;
// include this to provoke instantiation at pre-execution time
static void use(T const &) {}
- static T & get_instance(){
+ BOOST_DLLEXPORT static T & get_instance() BOOST_USED {
static T t;
// refer to instance, causing it to be instantiated (and
// initialized at startup on working compilers)
Modified: trunk/boost/serialization/void_cast_fwd.hpp
==============================================================================
--- trunk/boost/serialization/void_cast_fwd.hpp (original)
+++ trunk/boost/serialization/void_cast_fwd.hpp 2008-06-21 21:06:16 EDT (Sat, 21 Jun 2008)
@@ -17,6 +17,7 @@
// See http://www.boost.org for updates, documentation, and revision history.
+#include <cstddef> // NULL
#include <boost/serialization/force_include.hpp>
namespace boost {
Modified: trunk/boost/smart_cast.hpp
==============================================================================
--- trunk/boost/smart_cast.hpp (original)
+++ trunk/boost/smart_cast.hpp 2008-06-21 21:06:16 EDT (Sat, 21 Jun 2008)
@@ -36,6 +36,7 @@
#include <exception>
#include <typeinfo>
+#include <cstddef> // NULL
#include <boost/config.hpp>
#include <boost/static_assert.hpp>
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