From 2b856f69d490f6cedffac03ecbed8fef318ecc43 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 5 Feb 2013 15:50:06 +0200 Subject: 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. --- odb/details/config-vc.h | 2 ++ odb/details/config.hxx | 4 ++++ 2 files changed, 6 insertions(+) (limited to 'odb/details') 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 @@ -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 -- cgit v1.1