Introduce rtengine/noncopyable.hpp
This commit is contained in:
@@ -61,13 +61,16 @@
|
||||
|
||||
#include <cstring>
|
||||
#include <cstdint>
|
||||
#include <cassert>
|
||||
|
||||
#ifndef NDEBUG
|
||||
#include <glibmm.h>
|
||||
#include <fstream>
|
||||
#endif
|
||||
|
||||
#include "opthelper.h"
|
||||
#include <assert.h>
|
||||
#include "rt_math.h"
|
||||
#include "noncopyable.h"
|
||||
|
||||
// Bit representations of flags
|
||||
enum {
|
||||
@@ -85,7 +88,8 @@ using LUTd = LUT<double>;
|
||||
using LUTuc = LUT<uint8_t>;
|
||||
|
||||
template<typename T>
|
||||
class LUT
|
||||
class LUT :
|
||||
public rtengine::NonCopyable
|
||||
{
|
||||
protected:
|
||||
// list of variables ordered to improve cache speed
|
||||
@@ -167,8 +171,6 @@ public:
|
||||
reset();
|
||||
}
|
||||
|
||||
LUT(const LUT&) = delete;
|
||||
|
||||
~LUT()
|
||||
{
|
||||
if (owner) {
|
||||
|
Reference in New Issue
Block a user