aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2019-03-08 13:56:48 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2019-03-08 13:56:48 +0000
commit43aaf5ab736c7464bfeaa8a41b3e9b789cb4f7ff (patch)
tree7b466797ddb27f8e032436f4a44ed4926b405b57
parentf62d3527db908646a518b1c1412210a3ae645d73 (diff)
downloadgcc-43aaf5ab736c7464bfeaa8a41b3e9b789cb4f7ff.zip
gcc-43aaf5ab736c7464bfeaa8a41b3e9b789cb4f7ff.tar.gz
gcc-43aaf5ab736c7464bfeaa8a41b3e9b789cb4f7ff.tar.bz2
Add fixed underlying type to enum path::format
* include/bits/fs_path.h (path::format): Add fixed underlying type. From-SVN: r269493
-rw-r--r--libstdc++-v3/ChangeLog4
-rw-r--r--libstdc++-v3/include/bits/fs_path.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 9b876d0..e752285 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,7 @@
+2019-03-08 Jonathan Wakely <jwakely@redhat.com>
+
+ * include/bits/fs_path.h (path::format): Add fixed underlying type.
+
2019-03-08 François Dumont <fdumont@gcc.gnu.org>
PR libstdc++/89477
diff --git a/libstdc++-v3/include/bits/fs_path.h b/libstdc++-v3/include/bits/fs_path.h
index 077045e..96033f6 100644
--- a/libstdc++-v3/include/bits/fs_path.h
+++ b/libstdc++-v3/include/bits/fs_path.h
@@ -166,7 +166,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CXX11
#endif
typedef std::basic_string<value_type> string_type;
- enum format { native_format, generic_format, auto_format };
+ enum format : unsigned char { native_format, generic_format, auto_format };
// constructors and destructor