Commit eddca7bd by Mikhail Strelnikov Committed by Tim Shen

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
parent 2ba1f597
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment