Qualify use of std::declval to avoid ADL

* include/experimental/propagate_const (element_type): Qualify
	declval.

From-SVN: r241129
This commit is contained in:
Jonathan Wakely 2016-10-13 17:41:10 +01:00 committed by Jonathan Wakely
parent f49adbb8d8
commit 10482a6598
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2016-10-13 Jonathan Wakely <jwakely@redhat.com> 2016-10-13 Jonathan Wakely <jwakely@redhat.com>
* include/experimental/propagate_const (element_type): Qualify
declval.
* testsuite/26_numerics/random/default_random_engine.cc: Use VERIFY * testsuite/26_numerics/random/default_random_engine.cc: Use VERIFY
instead of assert. instead of assert.

View File

@ -63,7 +63,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
class propagate_const class propagate_const
{ {
public: public:
typedef remove_reference_t<decltype(*declval<_Tp&>())> element_type; typedef remove_reference_t<decltype(*std::declval<_Tp&>())> element_type;
private: private:
template <typename _Up> template <typename _Up>