From 168e20c1306e3e689907ba43e14ea679e2328611 Mon Sep 17 00:00:00 2001 From: Ed Tanous Date: Mon, 13 Dec 2021 14:39:53 -0800 Subject: Move to common variant This saves approximately 34kB in the compressed binary size of bmcweb due to reduced template instantiations. This amounts to a 2.5% reduction in the overall size. Note, there were a few places where we broke const-correctness in the form of pulling a non-const reference out of a const variant. This new variant now requires const correctness, so some consts are added where required. Tested: Code compiles. Signed-off-by: Ed Tanous Change-Id: I6a60c8881c1268627eedb4ffddf16689dc5f6ed2 --- include/image_upload.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include/image_upload.hpp') diff --git a/include/image_upload.hpp b/include/image_upload.hpp index 1a0ace04bb..1b0a09a4ba 100644 --- a/include/image_upload.hpp +++ b/include/image_upload.hpp @@ -5,6 +5,7 @@ #include #include #include +#include #include #include @@ -64,8 +65,8 @@ inline void sdbusplus::message::object_path path; std::vector>>>> + std::string, std::vector>>> interfaces; m.read(path, interfaces); -- cgit v1.2.3