summaryrefslogtreecommitdiff
path: root/src/strings
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2014-03-30 23:14:12 -0700
committerBen Longbons <b.r.longbons@gmail.com>2014-03-31 10:18:49 -0700
commit1a651243bb2c8e18baa9aac30ac52a62185074e7 (patch)
treedd2c0bfc448faef129fb64edec9f64d2ab12bfe5 /src/strings
parent769e8ac9c17779a15492d7fcfc1931c014670c2d (diff)
downloadtmwa-1a651243bb2c8e18baa9aac30ac52a62185074e7.tar.gz
tmwa-1a651243bb2c8e18baa9aac30ac52a62185074e7.tar.bz2
tmwa-1a651243bb2c8e18baa9aac30ac52a62185074e7.tar.xz
tmwa-1a651243bb2c8e18baa9aac30ac52a62185074e7.zip
Be stricter about most arrays
Diffstat (limited to 'src/strings')
-rw-r--r--src/strings/base.hpp2
-rw-r--r--src/strings/pair.hpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/strings/base.hpp b/src/strings/base.hpp
index cd8d46f..c5181da 100644
--- a/src/strings/base.hpp
+++ b/src/strings/base.hpp
@@ -31,6 +31,8 @@
// than would probably be necessary in an ideal language.
namespace strings
{
+ // TODO reimplement some things in terms of Slice and Slice::iterator?
+
// simple pointer-wrapping iterator that can be used to get distinct
// types for different containers.
template<class Tag>
diff --git a/src/strings/pair.hpp b/src/strings/pair.hpp
index a519ddb..a592a91 100644
--- a/src/strings/pair.hpp
+++ b/src/strings/pair.hpp
@@ -28,9 +28,7 @@
namespace strings
{
// TODO instead typedef ranges::Contiguous<const char>
- // or whatever it becomes once it exists.
- // const_array is just a hack, as evidenced by the fact
- // that it's not really const.
+ // or whatever it becomes once it exists (probably grown from Slice).
class XPair
{
const char *_begin;