summaryrefslogtreecommitdiff
path: root/src/strings/tstring.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/strings/tstring.hpp')
-rw-r--r--src/strings/tstring.hpp22
1 files changed, 10 insertions, 12 deletions
diff --git a/src/strings/tstring.hpp b/src/strings/tstring.hpp
index 7003d37..b0da566 100644
--- a/src/strings/tstring.hpp
+++ b/src/strings/tstring.hpp
@@ -1,5 +1,4 @@
-#ifndef TMWA_STRINGS_TSTRING_HPP
-#define TMWA_STRINGS_TSTRING_HPP
+#pragma once
// strings/tstring.hpp - A tail slice of a string.
//
// Copyright © 2013 Ben Longbons <b.r.longbons@gmail.com>
@@ -19,11 +18,14 @@
// 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 "base.hpp"
-# include "rstring.hpp"
+#include "base.hpp"
+#include "rstring.hpp"
+
+namespace tmwa
+{
namespace strings
{
/// An owning string that represents a tail slice of an RString.
@@ -43,10 +45,7 @@ namespace strings
TString(const XString&);
template<uint8_t n>
TString(const VString<n>& v);
- template<size_t n>
- TString(char (&s)[n]) = delete;
- template<size_t n>
- TString(const char (&s)[n]);
+ TString(const LString&);
//template<class It>
//TString(It b, It e) : _s(b, e), _o(0) {}
TString(XPair p);
@@ -63,7 +62,6 @@ namespace strings
// Actually, it might now.
const char *decay_for_printf(const TString& ts);
} // namespace strings
+} // namespace tmwa
-# include "tstring.tcc"
-
-#endif // TMWA_STRINGS_TSTRING_HPP
+#include "tstring.tcc"