diff options
author | Alex Williams <alex.williams@ni.com> | 2019-05-24 14:24:25 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-06-07 10:35:00 -0700 |
commit | 99afbd3855bdda10ded4b7a11ca7fd2b1e721ba7 (patch) | |
tree | 989555af0268811cbd7193e81a58697974bd13a3 /host/include | |
parent | e8e58e8150edbb8051114db07b1f43ecca2fe9c6 (diff) | |
download | uhd-99afbd3855bdda10ded4b7a11ca7fd2b1e721ba7.tar.gz uhd-99afbd3855bdda10ded4b7a11ca7fd2b1e721ba7.tar.bz2 uhd-99afbd3855bdda10ded4b7a11ca7fd2b1e721ba7.zip |
types: Add explicit copy-constructor for sid_t
Removes warnings due to -Wdeprecated-copy
Diffstat (limited to 'host/include')
-rw-r--r-- | host/include/uhd/types/sid.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
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. |