diff --git a/src/Utils.h b/src/Utils.h index e2913e2..ace4a85 100644 --- a/src/Utils.h +++ b/src/Utils.h @@ -78,6 +78,10 @@ namespace sdbus::internal { return true; } + // Implementation of the overload pattern for variant visitation + template struct overload : Ts... { using Ts::operator()...; }; + template overload(Ts...) -> overload; + } #endif /* SDBUS_CXX_INTERNAL_UTILS_H_ */