Add fixed underlying type to enum path::format
authorJonathan Wakely <jwakely@redhat.com>
Fri, 8 Mar 2019 13:56:48 +0000 (13:56 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 8 Mar 2019 13:56:48 +0000 (13:56 +0000)
* include/bits/fs_path.h (path::format): Add fixed underlying type.

From-SVN: r269493

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/fs_path.h

index 9b876d0..e752285 100644 (file)
@@ -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
index 077045e..96033f6 100644 (file)
@@ -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