From 9f2aeed962408d907219511ed03b920320379afa Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 13 Oct 2022 15:19:48 +0200 Subject: Reorder functions to help MinGW GCC with DLL symbol exporting --- libbuild2/variable.ixx | 16 ++++++++-------- 1 file 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:: -- cgit v1.1