summaryrefslogtreecommitdiff
path: root/src/strings/base.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/strings/base.hpp')
-rw-r--r--src/strings/base.hpp19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/strings/base.hpp b/src/strings/base.hpp
index ee7480b..b6b3df0 100644
--- a/src/strings/base.hpp
+++ b/src/strings/base.hpp
@@ -1,5 +1,4 @@
-#ifndef TMWA_STRINGS_BASE_HPP
-#define TMWA_STRINGS_BASE_HPP
+#pragma once
// strings/base.hpp - CRTP base for string implementations.
//
// Copyright © 2013 Ben Longbons <b.r.longbons@gmail.com>
@@ -19,15 +18,16 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
-# include "../sanity.hpp"
+#include "fwd.hpp"
+#include "pair.hpp"
-# include "fwd.hpp"
-# include "pair.hpp"
+#include <cstddef>
-# include <cstddef>
+#include <iterator>
-# include <iterator>
+namespace tmwa
+{
// It is a common mistake to assume that one string class for everything.
// Because C++ and TMWA have a C legacy, there are a few more here
// than would probably be necessary in an ideal language.
@@ -197,7 +197,6 @@ namespace strings
template<class L, class R, typename=typename std::enable_if<string_comparison_allowed<L, R>::value>::type>
auto operator >= (const L& l, const R& r) -> decltype((pair_compare(l, r), true));
} // namespace strings
+} // namespace tmwa
-# include "base.tcc"
-
-#endif // TMWA_STRINGS_BASE_HPP
+#include "base.tcc"