optional (_Has_addressof): Check for non-member operator&.
authorJonathan Wakely <jwakely@redhat.com>
Wed, 12 Nov 2014 00:16:19 +0000 (00:16 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 12 Nov 2014 00:16:19 +0000 (00:16 +0000)
commit72e58f18aed02cadf0c19f11b8d524fab9613cac
tree764b1f5b152e4fdc07879325b77494767952403e
parent847e9cf81e5101f327e4cd5ac629df93b0afb581
optional (_Has_addressof): Check for non-member operator&.

* include/experimental/optional (_Has_addressof): Check for non-member
operator&.
* testsuite/experimental/optional/observers/2.cc: Add operator&.
* testsuite/experimental/optional/constexpr/observers/2.cc: Likewise.

From-SVN: r217397
libstdc++-v3/ChangeLog
libstdc++-v3/include/experimental/optional
libstdc++-v3/testsuite/experimental/optional/constexpr/observers/2.cc
libstdc++-v3/testsuite/experimental/optional/observers/2.cc