Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Core Modules
dune-common
Commits
1a473614
Commit
1a473614
authored
14 years ago
by
Markus Blatt
Browse files
Options
Downloads
Patches
Plain Diff
No need to keep deprecated class as it not used any more.
[[Imported from SVN: r6027]]
parent
f646851a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/common/ios.hh
+0
-56
0 additions, 56 deletions
dune/common/ios.hh
with
0 additions
and
56 deletions
dune/common/ios.hh
deleted
100644 → 0
+
0
−
56
View file @
f646851a
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
#ifndef DUNE_IOS_HH
#define DUNE_IOS_HH
#include
<ios>
#include
<dune/common/deprecated.hh>
namespace
Dune
{
/** @addtogroup Common
*
* @{
*/
/**
* @file
* @brief Utility class for storing and restting old std::ios flags.
* @author Markus Blatt
*/
/**
* @brief Utility class for storing and restting old std::ios flags.
*
* The constructor stores the flags currently set in the ios and the
* destructor sets these flags in the ios object again.
*
* \deprecated Use ios_base_all_saver instead.
*/
class
DUNE_DEPRECATED
IosFlagsRestorer
{
public:
/**
* @brief Constructor that stores the currently used flags.
* @param ios_ The ios object whose flags are to be saved and restored.
*/
IosFlagsRestorer
(
std
::
ios_base
&
ios_
)
:
ios
(
ios_
),
oldflags
(
ios
.
flags
())
{}
/**
* @brief Destructor that restores the flags stored by the constructor.
*/
~
IosFlagsRestorer
()
{
ios
.
flags
(
oldflags
);
}
private
:
/** @brief the ios object to restore the flags to.*/
std
::
ios_base
&
ios
;
/** @brief The flags used when the constructor was called. */
std
::
ios_base
::
fmtflags
oldflags
;
};
/** }@ */
}
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment