diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2021-06-08 08:40:22 +0200 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2021-06-08 08:40:22 +0200 |
commit | 8b78a5b28039bf877a77acc625c362473c9238c3 (patch) | |
tree | c37120eaf401937134f6c482acc20b7489c286ef /ACE/ace/Time_Value.cpp | |
parent | e9078b688e371a3ae6bebf232eeebb3aca293da0 (diff) | |
download | ATCD-8b78a5b28039bf877a77acc625c362473c9238c3.tar.gz |
We require each platform to provide std iostreams so define ACE_HAS_CPP98_IOSTREAMS always for backwards compability and removed the checks for it
* ACE/ace/Time_Value.cpp:
* ACE/ace/Time_Value.h:
* ACE/ace/iosfwd.h:
* ACE/tests/Time_Value_Test.cpp:
Diffstat (limited to 'ACE/ace/Time_Value.cpp')
-rw-r--r-- | ACE/ace/Time_Value.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/ACE/ace/Time_Value.cpp b/ACE/ace/Time_Value.cpp index 6e8678860fb..429367d310d 100644 --- a/ACE/ace/Time_Value.cpp +++ b/ACE/ace/Time_Value.cpp @@ -12,12 +12,8 @@ #include "ace/If_Then_Else.h" #include "ace/OS_NS_math.h" #include "ace/Time_Policy.h" - -#ifdef ACE_HAS_CPP98_IOSTREAMS -# include <ostream> -# include <iomanip> -#endif /* ACE_HAS_CPP98_IOSTREAMS */ - +#include <ostream> +#include <iomanip> #include <cstdlib> #include <cmath> @@ -306,8 +302,7 @@ ACE_Time_Value::operator *= (double d) return *this; } -#ifdef ACE_HAS_CPP98_IOSTREAMS -ostream &operator<<(ostream &o, const ACE_Time_Value &v) +ostream &operator<<(std::ostream &o, const ACE_Time_Value &v) { char const oldFiller = o.fill (); o.fill ('0'); @@ -330,6 +325,5 @@ ostream &operator<<(ostream &o, const ACE_Time_Value &v) o.fill (oldFiller); return o; } -#endif /* ACE_HAS_CPP98_IOSTREAMS */ ACE_END_VERSIONED_NAMESPACE_DECL |