Compare commits

..

7 Commits

Author SHA1 Message Date
Beman Dawes 91d42e235f Branch for development of boost.system related changes
[SVN r40931]
2007-11-08 14:20:16 +00:00
Vladimir Prus e954446f2a Make sure every library can be installed by using
bjam stage|install

in libs/<library>/build.


[SVN r40475]
2007-10-26 09:04:25 +00:00
Nicola Musatti bec06ca0d4 Applied patch from Ticket #1319
[SVN r40019]
2007-10-14 17:51:32 +00:00
Beman Dawes ea37174708 Apply dll fixes from David Deakins
[SVN r39848]
2007-10-09 16:39:13 +00:00
Matthias Troyer 29ce16419f Fix for Borland
[SVN r39753]
2007-10-07 06:57:36 +00:00
John Maddock b56cb9ba74 Updated licences using blanket_permission.txt.
[SVN r39369]
2007-09-18 17:19:41 +00:00
Douglas Gregor 58e92cc397 Don't use BOOST_TEST_DONT_PRINT_LOG_VALUE if it isn't defined
[SVN r39245]
2007-09-13 19:31:03 +00:00
10 changed files with 27 additions and 22 deletions
+2
View File
@@ -85,3 +85,5 @@ lib boost_wserialization
<link>shared:<define>BOOST_SERIALIZATION_DYN_LINK=1
<conditional>@include-spirit
;
boost-install boost_serialization boost_wserialization ;
+3 -2
View File
@@ -20,6 +20,7 @@
#include <cstddef>
#include <boost/config.hpp>
#include <boost/archive/detail/auto_link_archive.hpp>
namespace std{
#if defined(__LIBCOMO__)
@@ -58,7 +59,7 @@ public:
template<>
class codecvt_null<wchar_t> : public std::codecvt<wchar_t, char, std::mbstate_t>
{
virtual std::codecvt_base::result
virtual BOOST_ARCHIVE_DECL(std::codecvt_base::result)
do_out(
std::mbstate_t & state,
const wchar_t * first1,
@@ -68,7 +69,7 @@ class codecvt_null<wchar_t> : public std::codecvt<wchar_t, char, std::mbstate_t>
char * last2,
char * & next2
) const;
virtual std::codecvt_base::result
virtual BOOST_ARCHIVE_DECL(std::codecvt_base::result)
do_in(
std::mbstate_t & state,
const char * first1,
@@ -71,16 +71,15 @@ protected:
public:
// note: NOT part of the public interface
void register_basic_serializer(
const BOOST_ARCHIVE_DECL(BOOST_PP_EMPTY()) basic_oserializer & bos
const basic_oserializer & bos
);
void save_object(
const void *x,
const BOOST_ARCHIVE_DECL(BOOST_PP_EMPTY()) basic_oserializer & bos
const basic_oserializer & bos
);
void save_pointer(
const void * t,
const BOOST_ARCHIVE_DECL(BOOST_PP_EMPTY())
basic_pointer_oserializer * bpos_ptr
const basic_pointer_oserializer * bpos_ptr
);
void save_null_pointer(){
vsave(NULL_POINTER_TAG);
@@ -32,7 +32,7 @@ namespace serialization {
namespace archive {
namespace detail {
class BOOST_ARCHIVE_DECL(BOOST_PP_EMPTY()) basic_pointer_iserializer;
class BOOST_ARCHIVE_OR_WARCHIVE_DECL(BOOST_PP_EMPTY()) basic_pointer_iserializer;
template<class Archive>
class interface_iarchive
@@ -51,9 +51,9 @@ public:
}
template<class T>
const BOOST_ARCHIVE_DECL(BOOST_PP_EMPTY()) basic_pointer_iserializer *
const basic_pointer_iserializer *
register_type(T * = NULL){
const BOOST_ARCHIVE_DECL(BOOST_PP_EMPTY()) basic_pointer_iserializer & bpis =
const basic_pointer_iserializer & bpis =
pointer_iserializer<Archive, T>::get_instance();
this->This()->register_basic_serializer(bpis.get_basic_serializer());
return & bpis;
@@ -32,7 +32,7 @@ namespace serialization {
namespace archive {
namespace detail {
class BOOST_ARCHIVE_DECL(BOOST_PP_EMPTY()) basic_pointer_oserializer;
class BOOST_ARCHIVE_OR_WARCHIVE_DECL(BOOST_PP_EMPTY()) basic_pointer_oserializer;
template<class Archive>
class interface_oarchive
@@ -51,9 +51,9 @@ public:
}
template<class T>
const BOOST_ARCHIVE_DECL(BOOST_PP_EMPTY()) basic_pointer_oserializer *
const basic_pointer_oserializer *
register_type(const T * = NULL){
const BOOST_ARCHIVE_DECL(BOOST_PP_EMPTY()) basic_pointer_oserializer & bpos =
const basic_pointer_oserializer & bpos =
pointer_oserializer<Archive, T>::get_instance();
this->This()->register_basic_serializer(bpos.get_basic_serializer());
return & bpos;
@@ -1,9 +1,8 @@
// Copyright © 2001 Ronald Garcia, Indiana University (garcia@osl.iu.edu)
// Andrew Lumsdaine, Indiana University (lums@osl.iu.edu). Permission to copy,
// use, modify, sell and distribute this software is granted provided this
// copyright notice appears in all copies. This software is provided "as is"
// without express or implied warranty, and with no claim as to its suitability
// for any purpose.
// Andrew Lumsdaine, Indiana University (lums@osl.iu.edu).
// 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 BOOST_ARCHIVE_DETAIL_UTF8_CODECVT_FACET_HPP
#define BOOST_ARCHIVE_DETAIL_UTF8_CODECVT_FACET_HPP
+2 -2
View File
@@ -41,7 +41,7 @@ void save( Archive & ar, const STD::valarray<U> &t, const unsigned int file_vers
{
const collection_size_type count(t.size());
ar << BOOST_SERIALIZATION_NVP(count);
if (count)
if (t.size())
ar << make_array(detail::get_data(t), t.size());
}
@@ -52,7 +52,7 @@ void load( Archive & ar, STD::valarray<U> &t, const unsigned int file_version )
collection_size_type count;
ar >> BOOST_SERIALIZATION_NVP(count);
t.resize(count);
if (count)
if (t.size())
ar >> make_array(detail::get_data(t), t.size());
}
+2 -2
View File
@@ -25,7 +25,7 @@
#include <boost/config.hpp>
#include <boost/operators.hpp>
#if !defined(__BORLANDC__)
#if !defined(__BORLANDC__) || __BORLANDC__ >= 0x590
#define BOOST_STRONG_TYPEDEF(T, D) \
struct D \
: boost::totally_ordered1< D \
@@ -61,6 +61,6 @@
bool operator==(const D & rhs) const { return t == rhs.t; } \
bool operator<(const D & rhs) const { return t < rhs.t; } \
};
#endif // !defined(__BORLANDC)
#endif // !defined(__BORLANDC) || __BORLANDC__ >= 0x590
#endif // BOOST_STRONG_TYPEDEF_HPP
+1
View File
@@ -7,6 +7,7 @@
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#define BOOST_ARCHIVE_SOURCE
#include <boost/archive/codecvt_null.hpp>
// codecvt implementation for passing wchar_t objects to char output
+4 -1
View File
@@ -22,6 +22,7 @@
#include <cstddef> // size_t
#include <boost/config.hpp>
#if defined(BOOST_NO_STDC_NAMESPACE)
namespace std{
using ::rand;
@@ -133,7 +134,9 @@ public:
friend std::istream & operator>>(std::istream & is, A & a);
};
BOOST_TEST_DONT_PRINT_LOG_VALUE(A);
#ifdef BOOST_TEST_DONT_PRINT_LOG_VALUE
BOOST_TEST_DONT_PRINT_LOG_VALUE(A)
#endif
template<class S>
void randomize(S &x)