/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
// test_list.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>
#include <cstdio> // remove
#if defined(BOOST_NO_STDC_NAMESPACE)
-namespace std{
+namespace std{
using ::remove;
}
#endif
BOOST_REQUIRE(NULL != testfile);
BOOST_STD_EXTENSION_NAMESPACE::slist<A *> aslist;
- {
+ {
test_ostream os(testfile, TEST_STREAM_FLAGS);
test_oarchive oa(os, TEST_ARCHIVE_FLAGS);
aslist.push_front(new A);
);
}
std::for_each(
- aslist.begin(),
- aslist.end(),
+ aslist.begin(),
+ aslist.end(),
boost::checked_deleter<A>()
);
std::for_each(
- aslist1.begin(),
- aslist1.end(),
+ aslist1.begin(),
+ aslist1.end(),
boost::checked_deleter<A>()
- );
+ );
std::remove(testfile);
}