Skip to content

Commit

Permalink
馃摑 Fix and add names to the Thanks
Browse files Browse the repository at this point in the history
- Adjust detail/span.hpp for failing if there's no std::span, since we use ztd::text::span everywhere instead of std::span for C++17 compatibility
  • Loading branch information
ThePhD committed Feb 22, 2021
1 parent 501bb29 commit aa51655
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
4 changes: 3 additions & 1 deletion documentation/source/license.rst
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ Charitable Contributions
- Pascal Menuet
- Elias Daler
- Randomnetcat
- Robery Maynard
- Robert Maynard
- Martin Ho艡e艌ovsk媒
- Hana Dus铆kov谩
- 7 more private sponsors
- And many, many more!

Expand Down
15 changes: 15 additions & 0 deletions include/ztd/text/detail/span.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,21 @@ namespace ztd { namespace text {
ZTD_TEXT_INLINE_ABI_NAMESPACE_CLOSE_I_
}} // namespace ztd::text

#else

namespace ztd { namespace text {
ZTD_TEXT_INLINE_ABI_NAMESPACE_OPEN_I_

inline constexpr decltype(::std::dynamic_extent) dynamic_extent = ::std::dynamic_extent;

using ::std::span_lite::as_bytes;
using ::std::span_lite::as_writable_bytes;
using ::std::span_lite::span;

ZTD_TEXT_INLINE_ABI_NAMESPACE_CLOSE_I_
}} // namespace ztd::text


#endif // Have Standard Span

#endif // ZTD_TEXT_DETAIL_SPAN_HPP

0 comments on commit aa51655

Please sign in to comment.