[GitHub] trafficserver issue #1571: StringVIew should be made compatible with std::st...

2017-03-11 Thread SolidWallOfCode
GitHub user SolidWallOfCode opened an issue:

https://github.com/apache/trafficserver/issues/1571

StringVIew should be made compatible with std::string_view for C++17

`StringView` is strongly different from the original proposals for string 
reference classes (e.g. `Boost.StringRef`) but the current proposal for C++17, 
`std::string_view`, is quite close in design and use. While `StringView` should 
be retained as it provides a number of essential methods not in 
`std::string_view`, `StringView` can be made to be a strict superset of 
`std::string_view` so that any code that uses `std::string_view` can replace 
`std::string_view` with `StringView`, and any developer used to 
`std::string_view` could immediately use `StringView`. In addition, 
`StringView` should promote direct interoperability, providing implicit 
conversions to and from `std::string_view`.






---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] trafficserver issue #1570: Replace ts::ConstBuffer with StringView

2017-03-11 Thread SolidWallOfCode
GitHub user SolidWallOfCode opened an issue:

https://github.com/apache/trafficserver/issues/1570

Replace ts::ConstBuffer with StringView

StringView is now committed to master. It was designed to replace 
`ts::ConstBuffer` therefore that should now be done and `TSBuffer.h` removed.






---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---