Allow rvalues in hb_addressof()
This commit is contained in:
parent
a4ea0d3680
commit
8f52a827e7
|
@ -250,7 +250,7 @@ hb_ctz (T v)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
static inline T* hb_addressof (T& arg)
|
static inline T* hb_addressof (const T& arg)
|
||||||
{
|
{
|
||||||
/* https://en.cppreference.com/w/cpp/memory/addressof */
|
/* https://en.cppreference.com/w/cpp/memory/addressof */
|
||||||
return reinterpret_cast<T*>(
|
return reinterpret_cast<T*>(
|
||||||
|
|
Loading…
Reference in New Issue