From a72e29ca1de5b484bedcb1cfa8be6cd2216dc54e Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Wed, 9 Feb 2011 19:23:36 -0800 Subject: uhd: tweaks for windows warnings and errors --- host/include/uhd/transport/bounded_buffer.ipp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'host/include') diff --git a/host/include/uhd/transport/bounded_buffer.ipp b/host/include/uhd/transport/bounded_buffer.ipp index 466c7a306..7be2f987c 100644 --- a/host/include/uhd/transport/bounded_buffer.ipp +++ b/host/include/uhd/transport/bounded_buffer.ipp @@ -31,11 +31,10 @@ namespace uhd{ namespace transport{ namespace{ /*anon*/ public: bounded_buffer_detail(size_t capacity): - _buffer(capacity), - _not_full_fcn(boost::bind(&bounded_buffer_detail::not_full, this)), - _not_empty_fcn(boost::bind(&bounded_buffer_detail::not_empty, this)) + _buffer(capacity) { - /* NOP */ + _not_full_fcn = boost::bind(&bounded_buffer_detail::not_full, this); + _not_empty_fcn = boost::bind(&bounded_buffer_detail::not_empty, this); } UHD_INLINE bool push_with_pop_on_full(const elem_type &elem){ -- cgit v1.2.3