mirror of git://gcc.gnu.org/git/gcc.git
Qualify use of std::declval to avoid ADL
* include/experimental/propagate_const (element_type): Qualify declval. From-SVN: r241129
This commit is contained in:
parent
f49adbb8d8
commit
10482a6598
|
|
@ -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.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue