Allow rvalues in hb_addressof()

This commit is contained in:
Behdad Esfahbod 2019-01-09 00:36:26 -08:00
parent a4ea0d3680
commit 8f52a827e7
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,7 @@ hb_ctz (T v)
*/
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 */
return reinterpret_cast<T*>(