aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-09-05 09:29:12 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-09-05 09:29:12 +0200
commit06cbae6a6d9c81b2eba365f2460fcde8c5e947cb (patch)
tree2b4b178729dd7c2345cfdc9da9542da10d687f9f
parentd58ea8d6375d1de3c80a49f3dbda65e123892a94 (diff)
Fix issue with constexpr initialization, GCC 4.8 doesn't support this
-rw-r--r--build2/config/init.cxx2
-rw-r--r--build2/config/module2
2 files changed, 2 insertions, 2 deletions
diff --git a/build2/config/init.cxx b/build2/config/init.cxx
index 368b9d0..a5cdf5a 100644
--- a/build2/config/init.cxx
+++ b/build2/config/init.cxx
@@ -23,7 +23,7 @@ namespace build2
namespace config
{
const string module::name ("config");
- const uint64_t module::version;
+ const uint64_t module::version (1);
void
boot (scope& rs, const location& loc, unique_ptr<module_base>&)
diff --git a/build2/config/module b/build2/config/module
index 8f9a9b9..16da966 100644
--- a/build2/config/module
+++ b/build2/config/module
@@ -80,7 +80,7 @@ namespace build2
config::saved_modules saved_modules;
static const string name; // init.cxx
- static constexpr const uint64_t version = 1;
+ static const uint64_t version; // init.cxx
};
}
}