/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
// test_iterators.cpp
-// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
+// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
// Use, modification and distribution is subject to 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)
#include <boost/config.hpp>
#ifdef BOOST_NO_STDC_NAMESPACE
-namespace std{
- using ::rand;
+namespace std{
+ using ::rand;
using ::size_t;
}
#endif
typedef std::list<CharType> text_base64_type;
text_base64_type text_base64;
- typedef
+ typedef
boost::archive::iterators::insert_linebreaks<
boost::archive::iterators::base64_from_binary<
boost::archive::iterators::transform_width<
,6
,sizeof(CharType) * 8
>
- >
+ >
,76
- >
+ >
translate_out;
std::copy(
std::back_inserter(text_base64)
);
- // convert from base64 to binary and compare with the original
- typedef
+ // convert from base64 to binary and compare with the original
+ typedef
boost::archive::iterators::transform_width<
boost::archive::iterators::binary_from_base64<
boost::archive::iterators::remove_whitespace<
sizeof(CharType) * 8,
6
> translate_in;
-
+
BOOST_CHECK(
std::equal(
rawdata,