aboutsummaryrefslogtreecommitdiff
path: root/libbutl
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-11-10 16:22:17 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-11-10 16:22:17 +0200
commit84adbc0a134998b6c50bd951d3805138345530f7 (patch)
treefbdf0b489260a5347a37df914c77c66880cedc06 /libbutl
parent8f4b6a0680744d656eaa60a0908552274e2a4a9b (diff)
Reorder inline functions to make MinGW GCC happy
Diffstat (limited to 'libbutl')
-rw-r--r--libbutl/char-scanner.ixx14
-rw-r--r--libbutl/char-scanner.mxx12
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
{