source: NonGTP/Boost/boost/test/detail/wrap_io_saver.hpp @ 857

Revision 857, 1.5 KB checked in by igarcia, 19 years ago (diff)
Line 
1//  (C) Copyright Gennadiy Rozental 2005.
2//  Distributed under the Boost Software License, Version 1.0.
3//  (See accompanying file LICENSE_1_0.txt or copy at
4//  http://www.boost.org/LICENSE_1_0.txt)
5
6//  See http://www.boost.org/libs/test for the library home page.
7//
8//  File        : $RCSfile: wrap_io_saver.hpp,v $
9//
10//  Version     : $Revision: 1.1 $
11//
12//  Description : wraps io savers staff to be provide workaround for classic iostreams
13// ***************************************************************************
14
15#ifndef BOOST_WRAP_IO_SAVER_HPP_011605GER
16#define BOOST_WRAP_IO_SAVER_HPP_011605GER
17
18#if defined(BOOST_STANDARD_IOSTREAMS)
19#include <boost/io/ios_state.hpp>
20#endif
21
22namespace boost {
23
24namespace unit_test {
25
26#if defined(BOOST_STANDARD_IOSTREAMS)
27
28typedef ::boost::io::ios_base_all_saver io_saver_type;
29
30#else
31
32struct io_saver_type {
33    explicit io_saver_type( std::ostream& ) {}
34    void     restore() {}
35};
36
37#endif
38
39} // namespace unit_test
40
41} // namespace boost
42
43// ***************************************************************************
44//  Revision History :
45// 
46//  $Log: wrap_io_saver.hpp,v $
47//  Revision 1.1  2005/04/30 16:48:21  rogeeff
48//  io saver warkaround for classic io is shared
49//
50//  Revision 1.1  2005/02/20 08:27:06  rogeeff
51//  This a major update for Boost.Test framework. See release docs for complete list of fixes/updates
52//
53// ***************************************************************************
54
55#endif // BOOST_WRAP_IO_SAVER_HPP_011605GER
56
Note: See TracBrowser for help on using the repository browser.