variant (_Variant_storage::_M_storage()): Use std::addressof instead of operator& to take address.
2016-09-05 Mikhail Strelnikov <mikhail.strelnikov@gmail.com> * include/std/variant (_Variant_storage::_M_storage()): Use std::addressof instead of operator& to take address. From-SVN: r239996
This commit is contained in:
parent
2ba1f597c2
commit
eddca7bd73
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2016-09-05 Mikhail Strelnikov <mikhail.strelnikov@gmail.com>
|
||||
|
||||
* include/std/variant (_Variant_storage::_M_storage()): Use std::addressof
|
||||
instead of operator& to take address.
|
||||
|
||||
2016-09-02 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
|
||||
|
||||
* acinclude.m4 (GLIBCXX_CONFIGURE_TESTSUITE): Check for presence of
|
||||
|
|
|
@ -312,7 +312,7 @@ namespace __variant
|
|||
_M_storage() const
|
||||
{
|
||||
return const_cast<void*>(
|
||||
static_cast<const void*>(&_M_first._M_storage));
|
||||
static_cast<const void*>(std::addressof(_M_first._M_storage)));
|
||||
}
|
||||
|
||||
union
|
||||
|
|
Loading…
Add table
Reference in a new issue