aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-10-03 08:11:17 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-10-03 08:11:17 +0200
commitfe22317bdf0f8e9a22fe812730abdb4cbff4ae03 (patch)
treefdd31ebf5c66063199853b6ed332608fe5ac31ee
parent54e342c763145174d3109bb055fca08a98f37065 (diff)
Add support for compile-time detection of unnecessary data migration functions
-rw-r--r--evolution/data/driver.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/evolution/data/driver.cxx b/evolution/data/driver.cxx
index 7daa5c9..a31a9ec 100644
--- a/evolution/data/driver.cxx
+++ b/evolution/data/driver.cxx
@@ -48,16 +48,15 @@ migrate2 (database& db)
db.persist (o2);
}
-static const data_migration_entry migrate2_entry (3, &migrate2);
+static const data_migration_entry<3, 1> migrate2_entry (&migrate2);
int
main (int argc, char* argv[])
{
- schema_catalog::data_migration_function (3, &migrate1);
+ schema_catalog::data_migration_function<3, 1> (&migrate1);
#ifdef HAVE_CXX11
- schema_catalog::data_migration_function (
- 3,
+ schema_catalog::data_migration_function<3, 1> (
[] (database& db)
{
using namespace v2;