diff options
Diffstat (limited to 'src/3rdparty/harfbuzz-ng/src/hb-dispatch.hh')
-rw-r--r-- | src/3rdparty/harfbuzz-ng/src/hb-dispatch.hh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/3rdparty/harfbuzz-ng/src/hb-dispatch.hh b/src/3rdparty/harfbuzz-ng/src/hb-dispatch.hh index 1ce3fac936..37ca681465 100644 --- a/src/3rdparty/harfbuzz-ng/src/hb-dispatch.hh +++ b/src/3rdparty/harfbuzz-ng/src/hb-dispatch.hh @@ -35,7 +35,7 @@ * Dispatch */ -template <typename Context, typename Return, unsigned int MaxDebugDepth> +template <typename Context, typename Return=hb_empty_t, unsigned int MaxDebugDepth=0> struct hb_dispatch_context_t { private: @@ -43,15 +43,17 @@ struct hb_dispatch_context_t const Context* thiz () const { return static_cast<const Context *> (this); } Context* thiz () { return static_cast< Context *> (this); } public: + const char *get_name () { return "UNKNOWN"; } static constexpr unsigned max_debug_depth = MaxDebugDepth; typedef Return return_t; template <typename T, typename F> bool may_dispatch (const T *obj HB_UNUSED, const F *format HB_UNUSED) { return true; } template <typename T, typename ...Ts> return_t dispatch (const T &obj, Ts&&... ds) - { return obj.dispatch (thiz (), hb_forward<Ts> (ds)...); } + { return obj.dispatch (thiz (), std::forward<Ts> (ds)...); } static return_t no_dispatch_return_value () { return Context::default_return_value (); } static bool stop_sublookup_iteration (const return_t r HB_UNUSED) { return false; } + unsigned debug_depth = 0; }; |