diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2022-12-13 22:03:02 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2022-12-15 12:45:07 +0300 |
commit | b3b14171766089890b9e1b44935ed5dbc233c5f8 (patch) | |
tree | b3f0d1471fe5c28187a0d5db0a6eae3822516e7a /libbuild2/script/regex.hxx | |
parent | 3ca670b7b7c71ca67d70cac9dffb2ba6120b2e36 (diff) |
Add noexcept to move constructors and move assignment operators
Diffstat (limited to 'libbuild2/script/regex.hxx')
-rw-r--r-- | libbuild2/script/regex.hxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libbuild2/script/regex.hxx b/libbuild2/script/regex.hxx index f6cf566..3c49b31 100644 --- a/libbuild2/script/regex.hxx +++ b/libbuild2/script/regex.hxx @@ -271,8 +271,8 @@ namespace build2 template <typename T> struct line_char_cmp : public std::enable_if<std::is_integral<T>::value || - (std::is_enum<T>::value && - !std::is_same<T, char_flags>::value)> {}; + (std::is_enum<T>::value && + !std::is_same<T, char_flags>::value)> {}; template <typename T, typename = typename line_char_cmp<T>::type> bool @@ -470,10 +470,10 @@ namespace std is (mask m, char_type c) const { return m == - (c.type () == line_type::special && c.special () >= 0 && - build2::digit (static_cast<char> (c.special ())) - ? digit - : 0); + (c.type () == line_type::special && c.special () >= 0 && + build2::digit (static_cast<char> (c.special ())) + ? digit + : 0); } const char_type* |