USRP Hardware Driver and USRP Manual  Version: 3.15.0.HEAD-0-g6563c537
UHD and USRP Manual
noncopyable.hpp
Go to the documentation of this file.
1 //
2 // Copyright 2019 Ettus Research, a National Instruments Brand
3 //
4 // SPDX-License-Identifier: GPL-3.0-or-later
5 //
6 
7 #ifndef INCLUDED_UHDLIB_UTILS_NONCOPYABLE_HPP
8 #define INCLUDED_UHDLIB_UTILS_NONCOPYABLE_HPP
9 
10 #ifdef UHD_AVOID_BOOST
11 
12 namespace uhd {
13 
30 class noncopyable
31 {
32 public:
33  noncopyable() = default;
34  ~noncopyable() = default;
35 
36  noncopyable(const noncopyable&) = delete;
37  noncopyable& operator=(const noncopyable&) = delete;
38 };
39 
40 } /* namespace uhd */
41 
42 #else
43 
44 # include <boost/core/noncopyable.hpp>
45 namespace uhd {
47 }
48 
49 #endif
50 
51 #endif /* INCLUDED_UHDLIB_UTILS_NONCOPYABLE_HPP */
boost::noncopyable noncopyable
Definition: noncopyable.hpp:46
Definition: build_info.hpp:13