summaryrefslogtreecommitdiffstats
path: root/libcxx/include/ios
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2015-10-29 05:43:30 +0000
committerMarshall Clow <mclow.lists@gmail.com>2015-10-29 05:43:30 +0000
commit131733bcf0ca8aabab5cb39f2613cec891afc0bd (patch)
tree46dd97c127dbde566a15d3366c68f44fd3ed759e /libcxx/include/ios
parent45bd8ce64c53f86711f5a5ce61db751a3640d0d1 (diff)
downloadbcm5719-llvm-131733bcf0ca8aabab5cb39f2613cec891afc0bd.tar.gz
bcm5719-llvm-131733bcf0ca8aabab5cb39f2613cec891afc0bd.zip
Implement P0004R1 'Remove Deprecated iostreams aliases'
llvm-svn: 251618
Diffstat (limited to 'libcxx/include/ios')
-rw-r--r--libcxx/include/ios15
1 files changed, 9 insertions, 6 deletions
diff --git a/libcxx/include/ios b/libcxx/include/ios
index 8843ed4ca85..1deb5f613c8 100644
--- a/libcxx/include/ios
+++ b/libcxx/include/ios
@@ -114,9 +114,9 @@ class basic_ios
public:
// types:
typedef charT char_type;
- typedef typename traits::int_type int_type;
- typedef typename traits::pos_type pos_type;
- typedef typename traits::off_type off_type;
+ typedef typename traits::int_type int_type; // removed in C++17
+ typedef typename traits::pos_type pos_type; // removed in C++17
+ typedef typename traits::off_type off_type; // removed in C++17
typedef traits traits_type;
operator unspecified-bool-type() const;
@@ -254,14 +254,12 @@ public:
static const fmtflags floatfield = scientific | fixed;
typedef unsigned int iostate;
- typedef iostate io_state;
static const iostate badbit = 0x1;
static const iostate eofbit = 0x2;
static const iostate failbit = 0x4;
static const iostate goodbit = 0x0;
typedef unsigned int openmode;
- typedef openmode open_mode;
static const openmode app = 0x01;
static const openmode ate = 0x02;
static const openmode binary = 0x04;
@@ -270,10 +268,15 @@ public:
static const openmode trunc = 0x20;
enum seekdir {beg, cur, end};
- typedef seekdir seek_dir;
+
+#if _LIBCPP_STD_VER <= 14
+ typedef iostate io_state;
+ typedef openmode open_mode;
+ typedef seekdir seek_dir;
typedef _VSTD::streamoff streamoff;
typedef _VSTD::streampos streampos;
+#endif
class _LIBCPP_TYPE_VIS Init;
OpenPOWER on IntegriCloud