diff options
Diffstat (limited to 'host/include')
-rw-r--r-- | host/include/uhd/property_tree.hpp | 2 | ||||
-rw-r--r-- | host/include/uhd/property_tree.ipp | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/host/include/uhd/property_tree.hpp b/host/include/uhd/property_tree.hpp index 7edadcbda..9fc9b3b97 100644 --- a/host/include/uhd/property_tree.hpp +++ b/host/include/uhd/property_tree.hpp @@ -65,7 +65,7 @@ namespace uhd { * - T must have an assignment operator */ template <typename T> -class property : uhd::noncopyable +class UHD_API_HEADER property : uhd::noncopyable { public: typedef std::function<void(const T&)> subscriber_type; diff --git a/host/include/uhd/property_tree.ipp b/host/include/uhd/property_tree.ipp index b1b95c2c8..273227174 100644 --- a/host/include/uhd/property_tree.ipp +++ b/host/include/uhd/property_tree.ipp @@ -179,8 +179,7 @@ namespace uhd { template <typename T> property<T>& property_tree::create(const fs_path& path, coerce_mode_t coerce_mode) { - this->_create(path, - typename std::shared_ptr<property<T> >(new property_impl<T>(coerce_mode))); + this->_create(path, std::make_shared<property_impl<T> >(coerce_mode)); return this->access<T>(path); } |