summaryrefslogtreecommitdiff
path: root/src/strings/sstring.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/strings/sstring.hpp')
-rw-r--r--src/strings/sstring.hpp22
1 files changed, 10 insertions, 12 deletions
diff --git a/src/strings/sstring.hpp b/src/strings/sstring.hpp
index 7166e94..a65616d 100644
--- a/src/strings/sstring.hpp
+++ b/src/strings/sstring.hpp
@@ -1,5 +1,4 @@
-#ifndef TMWA_STRINGS_SSTRING_HPP
-#define TMWA_STRINGS_SSTRING_HPP
+#pragma once
// strings/sstring.hpp - A full slice of an RString.
//
// 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 arbitrary slice of an RString.
@@ -42,10 +44,7 @@ namespace strings
SString(const XString&);
template<uint8_t n>
SString(const VString<n>& v);
- template<size_t n>
- SString(char (&s)[n]) = delete;
- template<size_t n>
- SString(const char (&s)[n]);
+ SString(const LString&);
//template<class It>
//SString(It b, It e) : _s(b, e), _b(0), _e(_s.size()) {}
SString(RString f, size_t b, size_t e);
@@ -57,7 +56,6 @@ namespace strings
const RString *base() const;
};
} // namespace strings
+} // namespace tmwa
-# include "sstring.tcc"
-
-#endif // TMWA_STRINGS_SSTRING_HPP
+#include "sstring.tcc"