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 9b876d0307dcca443454811db50803b3add219be..e752285bdb26a4e8483403bc35a6b30ae2c5ac81 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 077045e6c788c9040243b6644033dbd428c17ca2..96033f68c36cd86c0b7f39919760b9c17e9ba22a 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