diff options
-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. |