In a current project that’s using C++ 14 I need a constexpr
capable string reference container that wraps a pointer to a string and its number of characters. C++ 17 has std::string_view
for this which comes with constexpr
constructors and member functions. I’m currently using the string-view-lite replacement and it works fine, but as I only need the most basic functions I was wondering if juce::StringRef
could be made constexpr
where possible as well, which would mean one dependency less
Any thoughts from the JUCE devs on this? Seems straightforward to me, but I might be overlooking something…