⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wrap_io_saver.hpp

📁 C++的一个好库。。。现在很流行
💻 HPP
字号:
//  (C) Copyright Gennadiy Rozental 2005.
//  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)

//  See http://www.boost.org/libs/test for the library home page.
//
//  File        : $RCSfile: wrap_io_saver.hpp,v $
//
//  Version     : $Revision: 1.1 $
//
//  Description : wraps io savers staff to be provide workaround for classic iostreams
// ***************************************************************************

#ifndef BOOST_WRAP_IO_SAVER_HPP_011605GER
#define BOOST_WRAP_IO_SAVER_HPP_011605GER

#if defined(BOOST_STANDARD_IOSTREAMS)
#include <boost/io/ios_state.hpp>
#endif

namespace boost {

namespace unit_test {

#if defined(BOOST_STANDARD_IOSTREAMS)

typedef ::boost::io::ios_base_all_saver io_saver_type;

#else

struct io_saver_type {
    explicit io_saver_type( std::ostream& ) {}
    void     restore() {}
};

#endif

} // namespace unit_test

} // namespace boost

// ***************************************************************************
//  Revision History :
//  
//  $Log: wrap_io_saver.hpp,v $
//  Revision 1.1  2005/04/30 16:48:21  rogeeff
//  io saver warkaround for classic io is shared
//
//  Revision 1.1  2005/02/20 08:27:06  rogeeff
//  This a major update for Boost.Test framework. See release docs for complete list of fixes/updates
//
// ***************************************************************************

#endif // BOOST_WRAP_IO_SAVER_HPP_011605GER

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -