summaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-07-22 10:26:48 -0700
committerJosh Blum <josh@joshknows.com>2010-07-22 10:26:48 -0700
commitf1fe66acd4fd32fe0f99548f11e8f4ab28b4c9f1 (patch)
tree9dff5e16ea44c76baefeeab5c8d5a7c26566e67e /host/include
parent02be26f6b89869cb7f3ced716cf5447b913d58d5 (diff)
downloaduhd-f1fe66acd4fd32fe0f99548f11e8f4ab28b4c9f1.tar.gz
uhd-f1fe66acd4fd32fe0f99548f11e8f4ab28b4c9f1.tar.bz2
uhd-f1fe66acd4fd32fe0f99548f11e8f4ab28b4c9f1.zip
usrp: changed opaque pointer implementation for dboard contructor args
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/usrp/dboard_base.hpp2
-rw-r--r--host/include/uhd/utils/pimpl.hpp3
2 files changed, 3 insertions, 2 deletions
diff --git a/host/include/uhd/usrp/dboard_base.hpp b/host/include/uhd/usrp/dboard_base.hpp
index e88d39876..9b75d791f 100644
--- a/host/include/uhd/usrp/dboard_base.hpp
+++ b/host/include/uhd/usrp/dboard_base.hpp
@@ -40,7 +40,7 @@ public:
* Derived classes should pass the args into the base class,
* but should not deal with the internals of the args.
*/
- struct ctor_args_impl; typedef ctor_args_impl* ctor_args_t;
+ typedef void * ctor_args_t;
//structors
dboard_base(ctor_args_t);
diff --git a/host/include/uhd/utils/pimpl.hpp b/host/include/uhd/utils/pimpl.hpp
index 09bf0c0a2..18454f0c4 100644
--- a/host/include/uhd/utils/pimpl.hpp
+++ b/host/include/uhd/utils/pimpl.hpp
@@ -20,6 +20,7 @@
#include <uhd/config.hpp>
#include <boost/shared_ptr.hpp>
+#include <boost/make_shared.hpp>
/*! \file pimpl.hpp
* "Pimpl idiom" (pointer to implementation idiom).
@@ -50,6 +51,6 @@
* \param _args the constructor args for the pimpl
*/
#define UHD_PIMPL_MAKE(_name, _args) \
- boost::shared_ptr<_name>(new _name _args)
+ boost::make_shared<_name> _args
#endif /* INCLUDED_UHD_UTILS_PIMPL_HPP */