USRP Hardware Driver and USRP Manual Version: 3.15.0.0-MacPorts-Release
UHD and USRP Manual
 
Loading...
Searching...
No Matches
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
12namespace uhd {
13
30class noncopyable
31{
32public:
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>
45namespace uhd {
46typedef boost::noncopyable noncopyable;
47}
48
49#endif
50
51#endif /* INCLUDED_UHDLIB_UTILS_NONCOPYABLE_HPP */
Definition build_info.hpp:13
boost::noncopyable noncopyable
Definition noncopyable.hpp:46