Message ID | 20250924124713.3361707-2-barnabas.pocze@ideasonboard.com |
---|---|
State | New |
Headers | show |
Series |
|
Related | show |
diff --git a/include/libcamera/base/bound_method.h b/include/libcamera/base/bound_method.h index 91fe8b8cb..cb642e0a9 100644 --- a/include/libcamera/base/bound_method.h +++ b/include/libcamera/base/bound_method.h @@ -39,7 +39,7 @@ public: { } - std::tuple<typename std::remove_reference_t<Args>...> args_; + std::tuple<std::remove_cv_t<std::remove_reference_t<Args>>...> args_; R ret_; }; @@ -53,7 +53,7 @@ public: { } - std::tuple<typename std::remove_reference_t<Args>...> args_; + std::tuple<std::remove_cv_t<std::remove_reference_t<Args>>...> args_; }; class BoundMethodBase
Having extra qualifiers, especially `const`, simply inhibits optimization opportunities as it prevents e.g. moving values out of pack object. So strip the qualifiers. Signed-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com> --- include/libcamera/base/bound_method.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)