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:
Jonathan Wakely 2018-06-15 17:11:12 +01:00 committed by Jonathan Wakely
parent 9e9e626420
commit 3438bf7b9f
2 changed files with 5 additions and 1 deletions

View 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.

View 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