PR libstdc++/86168 fix ambiguous default constructor
PR libstdc++/86168 * include/bits/random.h (random_device(const string&)): Remove default argument. From-SVN: r261636
This commit is contained in:
parent
9e9e626420
commit
3438bf7b9f
|
@ -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.
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue