* fix typedef's
* fix virtual dtor's
* make ctor's with one argument explicit
* util::noncopyable utility class ( class my_object : private noncopyable {} )
* update kTileURL
24 lines
419 B
C++
24 lines
419 B
C++
#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
|