Homec4science

Use std::addressof to instead of plain '&'.

Authored by Chaoran Yang <chaorany@me.com> on May 12 2019, 02:14.

Description

Use std::addressof to instead of plain '&'.

Otherwise the code won't compile if the '&' operater is overloaded and
return something that cannot be casted to void *.

Details

Committed
Chaoran Yang <chaorany@me.com>May 12 2019, 02:14
Pushed
trottetDec 4 2019, 13:52
Parents
R9484:529981537745: Googletest export
Branches
Unknown
Tags
Unknown

Event Timeline

Chaoran Yang <chaorany@me.com> committed R9484:2fc238316537: Use std::addressof to instead of plain '&'. (authored by Chaoran Yang <chaorany@me.com>).May 12 2019, 02:14