PR libstdc++/86168 fix ambiguous default constructor
authorJonathan Wakely <jwakely@redhat.com>
Fri, 15 Jun 2018 16:11:12 +0000 (17:11 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 15 Jun 2018 16:11:12 +0000 (17:11 +0100)
PR libstdc++/86168
* include/bits/random.h (random_device(const string&)): Remove
default argument.

From-SVN: r261636

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

index cf6bfc9509a286f49c8d635ac2d2bbd2de803f49..482f64ee4604289dd7d3d793e2c13f90793d38dd 100644 (file)
@@ -1,5 +1,9 @@
 2018-06-15  Jonathan Wakely  <jwakely@redhat.com>
 
+       PR libstdc++/86168
+       * include/bits/random.h (random_device(const string&)): Remove
+       default argument.
+
        * include/bits/char_traits.h (__cpp_lib_constexpr_char_traits): Only
        define for C++17 and above.
 
index 738c62fccd12402b204e4e5ba0715a09145cadd5..e59c8b0221d01b84999b742f9ab68907657588af 100644 (file)
@@ -1614,7 +1614,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
     random_device() { _M_init("mt19937"); }
 
     explicit
-    random_device(const std::string& __token = "mt19937")
+    random_device(const std::string& __token)
     { _M_init_pretr1(__token); }
 #endif