From 54a684717fa39cd39315f8f6cb60b6c5a7fa76aa Mon Sep 17 00:00:00 2001 From: Camillo Lugaresi Date: Mon, 21 Nov 2022 23:22:49 -0800 Subject: [PATCH] Internal change PiperOrigin-RevId: 490159674 --- mediapipe/gpu/attachments.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mediapipe/gpu/attachments.h b/mediapipe/gpu/attachments.h index ca9f074c4..3a73e4676 100644 --- a/mediapipe/gpu/attachments.h +++ b/mediapipe/gpu/attachments.h @@ -31,8 +31,8 @@ class AttachmentBase {}; template class Attachment : public AttachmentBase { public: - using FactoryT = std::function(Context&)>; - Attachment(FactoryT factory) : factory_(factory) {} + using FactoryT = AttachmentPtr (*)(Context&); + explicit constexpr Attachment(FactoryT factory) : factory_(factory) {} Attachment(const Attachment&) = delete; Attachment(Attachment&&) = delete;