Qualify use of std::declval to avoid ADL
authorJonathan Wakely <jwakely@redhat.com>
Thu, 13 Oct 2016 16:41:10 +0000 (17:41 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 13 Oct 2016 16:41:10 +0000 (17:41 +0100)
* include/experimental/propagate_const (element_type): Qualify
declval.

From-SVN: r241129

libstdc++-v3/ChangeLog
libstdc++-v3/include/experimental/propagate_const

index 111bf5241e9e1308e6312b27c4c77fbf52219adc..bfaeb703223dc587be634b6a588b16539344aac7 100644 (file)
@@ -1,5 +1,8 @@
 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
        instead of assert.
 
index 15ffe4ac6ad85bd5252e9c9584454b27b04ef9fa..e1fb4e49198bca7dbfaec0f482a53b2cf2a3e75c 100644 (file)
@@ -63,7 +63,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
     class propagate_const
     {
     public:
-      typedef remove_reference_t<decltype(*declval<_Tp&>())> element_type;
+      typedef remove_reference_t<decltype(*std::declval<_Tp&>())> element_type;
 
     private:
       template <typename _Up>