File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11name "mir-algorithm"
2- description "Mir Algorithm Collection "
2+ description "Dlang Core Library "
33
44authors "Ilya Yaroshenko" "Sebastian Wilzbach" "Andrei Alexandrescu and Phobos Team (original Phobos code)" "John Michael Hall"
5- copyright "Copyright © 2016 - 2018 , Ilya Yaroshenko; see also information per file."
5+ copyright "Copyright © 2016 - 2019 , Ilya Yaroshenko; see also information per file."
66license "BSL-1.0"
77
88dependency "mir-core" version=">=0.3.5 <0.4.0"
@@ -24,5 +24,5 @@ configuration "default" {
2424}
2525
2626configuration "dips" {
27- dflags "-dip25" "- dip1000" "-dip1008"
27+ dflags "-preview= dip1000" "-preview= dip1008"
2828}
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ namespace mir
2323
2424 SmallString (const std::string& str) : SmallString((std::string_view)str) {}
2525 SmallString (const char * str) : SmallString(std::string_view(str)) {}
26- std::string_view str () const noexcept { return std::string_view (_data, _data[maxLength] ? maxLength : std::strlen (_data)); }
26+ std::string_view str () const noexcept { return std::string_view (_data, _data[maxLength - 1 ] ? maxLength : std::strlen (_data)); }
2727 operator std::string_view () const noexcept { return str (); }
2828 operator bool () const noexcept { return _data[0 ] != 0 ; }
2929 bool operator !() const noexcept { return _data[0 ] == 0 ; }
You can’t perform that action at this time.
0 commit comments