From b715733df6e93ca981b976d667809ac3bc60928f Mon Sep 17 00:00:00 2001 From: gumi Date: Mon, 5 Mar 2018 10:33:42 -0500 Subject: un-deprecate operator[] on pseudo-strings There's no reason for it to be deprecated in the first place --- src/strings/base.hpp | 1 - src/strings/base.tcc | 1 - 2 files changed, 2 deletions(-) diff --git a/src/strings/base.hpp b/src/strings/base.hpp index b6b3df0..7020b98 100644 --- a/src/strings/base.hpp +++ b/src/strings/base.hpp @@ -107,7 +107,6 @@ namespace strings // the existence of this has led to bugs // it's not really sane from a unicode perspective anyway ... // prefer startswith or extract - __attribute__((deprecated)) char operator[](size_t i) const; char front() const; char back() const; diff --git a/src/strings/base.tcc b/src/strings/base.tcc index 83dff70..47d1d1e 100644 --- a/src/strings/base.tcc +++ b/src/strings/base.tcc @@ -145,7 +145,6 @@ namespace strings } template - __attribute__((deprecated)) char _crtp_string::operator[](size_t i) const { return begin()[i]; -- cgit v1.2.3-70-g09d2