summaryrefslogtreecommitdiff
path: root/include/llmr/util/noncopyable.hpp
blob: 7891e529e39ceeb89a74c1bfe7d43c5f12c131b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef LLMR_UTIL_NONCOPYABLE
#define LLMR_UTIL_NONCOPYABLE

namespace llmr { namespace util {

namespace non_copyable_
{

class noncopyable
{
protected:
    constexpr noncopyable() = default;
    ~noncopyable() = default;
    noncopyable( noncopyable const& ) = delete;
    noncopyable& operator=(noncopyable const& ) = delete;
};
}

typedef non_copyable_::noncopyable noncopyable;

}}

#endif //LLMR_UTIL_NONCOPYABLE