aboutsummaryrefslogtreecommitdiff
path: root/build/variable
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-09-04 16:17:11 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-09-04 16:17:11 +0200
commita975e8e96dd0c39e576b9e44a4c35eeef47ebe76 (patch)
treee143838c46118a71a34e94de9664d6c718be9709 /build/variable
parent9c4ce4464b2a0dae55b7cfb2ec5fc4bd7ffc40ae (diff)
Fix static initialization order issue
Diffstat (limited to 'build/variable')
-rw-r--r--build/variable4
1 files changed, 3 insertions, 1 deletions
diff --git a/build/variable b/build/variable
index 3bd8922..2aec39d 100644
--- a/build/variable
+++ b/build/variable
@@ -32,7 +32,7 @@ namespace build
//
struct value_type
{
- const std::string name;
+ const char* name;
bool (*const assign) (names&, const variable&);
bool (*const append) (names&, names, const variable&);
};
@@ -437,6 +437,7 @@ namespace build
template <typename V> static void assign (value&, V);
template <typename V> static void append (value&, V);
+ static const std::string type_name;
static const build::value_type value_type;
};
@@ -566,6 +567,7 @@ namespace build
template <typename M> static void assign (value&, M);
template <typename M> static void append (value&, M);
+ static const std::string type_name;
static const build::value_type value_type;
};