[C++11] Use deleted methods
This commit is contained in:
parent
824fd342d5
commit
baf1e79075
30
src/hb.hh
30
src/hb.hh
|
@ -409,26 +409,26 @@ static_assert ((sizeof (hb_mask_t) == 4), "");
|
|||
static_assert ((sizeof (hb_var_int_t) == 4), "");
|
||||
|
||||
#define HB_DELETE_COPY_ASSIGN(TypeName) \
|
||||
TypeName(const TypeName&); \
|
||||
void operator=(const TypeName&)
|
||||
TypeName(const TypeName&) = delete; \
|
||||
void operator=(const TypeName&) = delete
|
||||
#define HB_DELETE_COPY_ASSIGN_TEMPLATE(TypeName, T) \
|
||||
TypeName(const TypeName<T>&); \
|
||||
void operator=(const TypeName<T>&)
|
||||
TypeName(const TypeName<T>&) = delete; \
|
||||
void operator=(const TypeName<T>&) = delete
|
||||
#define HB_DELETE_COPY_ASSIGN_TEMPLATE2(TypeName, T1, T2) \
|
||||
TypeName(const TypeName<T1, T2>&); \
|
||||
void operator=(const TypeName<T1, T2>&)
|
||||
TypeName(const TypeName<T1, T2>&) = delete; \
|
||||
void operator=(const TypeName<T1, T2>&) = delete
|
||||
#define HB_DELETE_CREATE_COPY_ASSIGN(TypeName) \
|
||||
TypeName(); \
|
||||
TypeName(const TypeName&); \
|
||||
void operator=(const TypeName&)
|
||||
TypeName() = delete; \
|
||||
TypeName(const TypeName&) = delete; \
|
||||
void operator=(const TypeName&) = delete
|
||||
#define HB_DELETE_CREATE_COPY_ASSIGN_TEMPLATE(TypeName, T) \
|
||||
TypeName(); \
|
||||
TypeName(const TypeName<T>&); \
|
||||
void operator=(const TypeName<T>&)
|
||||
TypeName() = delete; \
|
||||
TypeName(const TypeName<T>&) = delete; \
|
||||
void operator=(const TypeName<T>&) = delete
|
||||
#define HB_DELETE_CREATE_COPY_ASSIGN_TEMPLATE2(TypeName, T1, T2) \
|
||||
TypeName(); \
|
||||
TypeName(const TypeName<T1, T2>&); \
|
||||
void operator=(const TypeName<T1, T2>&)
|
||||
TypeName() = delete; \
|
||||
TypeName(const TypeName<T1, T2>&) = delete; \
|
||||
void operator=(const TypeName<T1, T2>&) = delete
|
||||
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue