aboutsummaryrefslogtreecommitdiff
path: root/libbuild2
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-10-13 15:19:48 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-10-13 15:19:48 +0200
commit9f2aeed962408d907219511ed03b920320379afa (patch)
tree2bfff301cc965d0cbb722a0c74de38454b36b986 /libbuild2
parent8b35f7a1936b15e46e2f7a40f00f3ade5a60dccc (diff)
Reorder functions to help MinGW GCC with DLL symbol exporting
Diffstat (limited to 'libbuild2')
-rw-r--r--libbuild2/variable.ixx16
1 files changed, 8 insertions, 8 deletions
diff --git a/libbuild2/variable.ixx b/libbuild2/variable.ixx
index 7cafd89..c9dfad4 100644
--- a/libbuild2/variable.ixx
+++ b/libbuild2/variable.ixx
@@ -905,14 +905,6 @@ namespace build2
// variable_pool
//
- inline const variable& variable_pool::
- operator[] (const string& n) const
- {
- const variable* r (find (n));
- assert (r != nullptr);
- return *r;
- }
-
inline const variable* variable_pool::
find (const string& n) const
{
@@ -933,6 +925,14 @@ namespace build2
return nullptr;
}
+ inline const variable& variable_pool::
+ operator[] (const string& n) const
+ {
+ const variable* r (find (n));
+ assert (r != nullptr);
+ return *r;
+ }
+
// variable_map
//
inline void variable_map::