From 84adbc0a134998b6c50bd951d3805138345530f7 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 10 Nov 2017 16:22:17 +0200 Subject: Reorder inline functions to make MinGW GCC happy --- libbutl/char-scanner.ixx | 14 -------------- libbutl/char-scanner.mxx | 12 ++++++++++-- 2 files changed, 10 insertions(+), 16 deletions(-) (limited to 'libbutl') 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 (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 { -- cgit v1.1