summaryrefslogtreecommitdiff
path: root/include/mbgl/util/noncopyable.hpp
blob: ada701efc6c6a0c0c1e8b842e661aed24c439157 (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 MBGL_UTIL_NONCOPYABLE
#define MBGL_UTIL_NONCOPYABLE

namespace mbgl { 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