[glom] C++11: LayoutFieldInRecord: =delete the copy/move operations.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] C++11: LayoutFieldInRecord: =delete the copy/move operations.
- Date: Mon, 7 Sep 2015 13:44:58 +0000 (UTC)
commit b07fcedf4d19aac14ecc056ba1e7e377a6f8ec29
Author: Murray Cumming <murrayc murrayc com>
Date: Mon Sep 7 15:27:06 2015 +0200
C++11: LayoutFieldInRecord: =delete the copy/move operations.
glom/base_db.h | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/glom/base_db.h b/glom/base_db.h
index 3f2268c..ccbe057 100644
--- a/glom/base_db.h
+++ b/glom/base_db.h
@@ -197,6 +197,12 @@ protected:
m_key = parent_key;
}
+ LayoutFieldInRecord(const LayoutFieldInRecord& src) = delete;
+ LayoutFieldInRecord& operator=(const LayoutFieldInRecord& src) = delete;
+
+ LayoutFieldInRecord(LayoutFieldInRecord&& src) = delete;
+ LayoutFieldInRecord& operator=(LayoutFieldInRecord&& src) = delete;
+
FieldInRecord get_fieldinrecord(const Document& document) const
{
return FieldInRecord(m_field, m_table_name, m_key, m_key_value, document);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]