aboutsummaryrefslogtreecommitdiff
path: root/odb/details
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-02-05 15:50:06 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-02-05 15:50:06 +0200
commit2b856f69d490f6cedffac03ecbed8fef318ecc43 (patch)
tree0876ef0d3539bb313a9dd66659e805e6980399aa /odb/details
parent20daa3c4285c91dfcd35361f6550f80315e008a5 (diff)
Add support for change-tracking containers
ODB now supports "smart" ordered containers. Such containers get extra functions for updating and deleting individual elements. Based on this functionality implement two change-tracking containers: odb::vector (equivalent to std::vector) and QOdbList (equivalent to QList). New tests: common/container/change-tracking and qt/common/container/change- tracking.
Diffstat (limited to 'odb/details')
-rw-r--r--odb/details/config-vc.h2
-rw-r--r--odb/details/config.hxx4
2 files changed, 6 insertions, 0 deletions
diff --git a/odb/details/config-vc.h b/odb/details/config-vc.h
index 2c2990a..6c7ed6d 100644
--- a/odb/details/config-vc.h
+++ b/odb/details/config-vc.h
@@ -19,6 +19,8 @@
//# define ODB_CXX11_DELETED_FUNCTION
//# define ODB_CXX11_EXPLICIT_CONVERSION_OPERATOR
//# define ODB_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGUMENT
+//# define ODB_CXX11_VARIADIC_TEMPLATES
+//# define ODB_CXX11_INITIALIZER_LIST
#endif
#endif /* ODB_DETAILS_CONFIG_VC_H */
diff --git a/odb/details/config.hxx b/odb/details/config.hxx
index 36a8e3a..ddba5b7 100644
--- a/odb/details/config.hxx
+++ b/odb/details/config.hxx
@@ -20,6 +20,8 @@
# define ODB_CXX11_DELETED_FUNCTION
# define ODB_CXX11_EXPLICIT_CONVERSION_OPERATOR
# define ODB_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGUMENT
+# define ODB_CXX11_VARIADIC_TEMPLATE
+# define ODB_CXX11_INITIALIZER_LIST
# endif
#else
# include <odb/details/config.h>
@@ -35,6 +37,8 @@
# define ODB_CXX11_DELETED_FUNCTION
# define ODB_CXX11_EXPLICIT_CONVERSION_OPERATOR
# define ODB_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGUMENT
+# define ODB_CXX11_VARIADIC_TEMPLATE
+# define ODB_CXX11_INITIALIZER_LIST
# endif
#endif