diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-11-10 16:22:17 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-11-10 16:22:17 +0200 |
commit | 84adbc0a134998b6c50bd951d3805138345530f7 (patch) | |
tree | fbdf0b489260a5347a37df914c77c66880cedc06 | |
parent | 8f4b6a0680744d656eaa60a0908552274e2a4a9b (diff) |
Reorder inline functions to make MinGW GCC happy
-rw-r--r-- | libbutl/char-scanner.ixx | 14 | ||||
-rw-r--r-- | libbutl/char-scanner.mxx | 12 |
2 files changed, 10 insertions, 16 deletions
diff --git a/libbutl/char-scanner.ixx b/libbutl/char-scanner.ixx index c32b034..84af581 100644 --- a/libbutl/char-scanner.ixx +++ b/libbutl/char-scanner.ixx @@ -65,18 +65,4 @@ namespace butl if (save_ != nullptr && c != xchar::traits_type::eof ()) save_->push_back (static_cast<char_type> (c)); } - - inline void char_scanner:: - save_start (std::string& b) - { - assert (save_ == nullptr); - save_ = &b; - } - - inline void char_scanner:: - save_stop () - { - assert (save_ != nullptr); - save_ = nullptr; - } } diff --git a/libbutl/char-scanner.mxx b/libbutl/char-scanner.mxx index 9bfdeec..3947a05 100644 --- a/libbutl/char-scanner.mxx +++ b/libbutl/char-scanner.mxx @@ -118,10 +118,18 @@ LIBBUTL_MODEXPORT namespace butl // public: void - save_start (std::string&); + save_start (std::string& b) + { + assert (save_ == nullptr); + save_ = &b; + } void - save_stop (); + save_stop () + { + assert (save_ != nullptr); + save_ = nullptr; + } struct save_guard { |