From fe22317bdf0f8e9a22fe812730abdb4cbff4ae03 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 3 Oct 2013 08:11:17 +0200 Subject: Add support for compile-time detection of unnecessary data migration functions --- evolution/data/driver.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'evolution') 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; -- cgit v1.1