From 99afbd3855bdda10ded4b7a11ca7fd2b1e721ba7 Mon Sep 17 00:00:00 2001 From: Alex Williams Date: Fri, 24 May 2019 14:24:25 -0700 Subject: types: Add explicit copy-constructor for sid_t Removes warnings due to -Wdeprecated-copy --- host/include/uhd/types/sid.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/host/include/uhd/types/sid.hpp b/host/include/uhd/types/sid.hpp index 09f4b74b9..c552bdeb3 100644 --- a/host/include/uhd/types/sid.hpp +++ b/host/include/uhd/types/sid.hpp @@ -83,6 +83,11 @@ public: //! Convert a string representation of a SID into its numerical representation sid_t(const std::string&); + //! Copy a sid + sid_t(const sid_t& sid) { + set_sid(sid.get_sid()); + } + //! Return a decimal string representation of the SID. std::string to_pp_string() const; //! Return a hexadecimal string representation of the SID. -- cgit v1.2.3