From 8f52a827e7d93abf3ef6159fd00f7c85c6d46793 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 9 Jan 2019 00:36:26 -0800 Subject: [PATCH] Allow rvalues in hb_addressof() --- src/hb-dsalgs.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-dsalgs.hh b/src/hb-dsalgs.hh index a7d9616b1..b5abb6db1 100644 --- a/src/hb-dsalgs.hh +++ b/src/hb-dsalgs.hh @@ -250,7 +250,7 @@ hb_ctz (T v) */ template -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(