From c1c4512f9f587fcc4d49a310d462ecfcc677842b Mon Sep 17 00:00:00 2001 From: Tomas Pecka Date: Thu, 16 Jul 2020 14:41:21 +0200 Subject: [PATCH] Fix build with gcc8.3 sdbus::ObjectPath and sdbus::Signature copy constructors are implicitly declared as deleted when compiling with Linaro's ARM toolchain [1] gcc8.3. Explicitly listing the copy constructors for affected classes fixes the problem. [1] https://www.linaro.org/ --- include/sdbus-c++/Types.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/sdbus-c++/Types.h b/include/sdbus-c++/Types.h index 74eaef5..6630bd8 100644 --- a/include/sdbus-c++/Types.h +++ b/include/sdbus-c++/Types.h @@ -154,6 +154,7 @@ namespace sdbus { public: using std::string::string; ObjectPath() = default; // Fixes gcc 6.3 error (default c-tor is not imported in above using declaration) + ObjectPath(const ObjectPath&) = default; // Fixes gcc 8.3 error (deleted copy constructor) ObjectPath(std::string path) : std::string(std::move(path)) {} @@ -171,6 +172,7 @@ namespace sdbus { public: using std::string::string; Signature() = default; // Fixes gcc 6.3 error (default c-tor is not imported in above using declaration) + Signature(const Signature&) = default; // Fixes gcc 8.3 error (deleted copy constructor) Signature(std::string path) : std::string(std::move(path)) {}