提交 8f52a827 编写于 作者: B Behdad Esfahbod

Allow rvalues in hb_addressof()

上级 a4ea0d36
......@@ -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*>(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册