Delete dangerously incorrect to_string_view helpers.
This commit is contained in:
parent
beb4d231b2
commit
7c973896d7
2 changed files with 35 additions and 50 deletions
|
@ -25,9 +25,6 @@
|
|||
#include <cstddef>
|
||||
#include <array>
|
||||
#include <limits>
|
||||
#if !defined(INT_CONV_WITHOUT_HELPERS)
|
||||
# include <string_view>
|
||||
#endif
|
||||
#include <emmintrin.h>
|
||||
#if defined(__SSE4_1__)
|
||||
# include <smmintrin.h>
|
||||
|
@ -289,18 +286,6 @@ namespace dhandy {
|
|||
inline R ary_to_int (C* beg, C* end) {
|
||||
return implem::AryConversion<R, Base, Tr>::from_ary(beg, end);
|
||||
}
|
||||
|
||||
#if !defined(INT_CONV_WITHOUT_HELPERS)
|
||||
template <typename T, std::size_t S>
|
||||
std::basic_string_view<T> to_string_view (const ReversedSizedArray<T, S>& ary) {
|
||||
return std::basic_string_view<T>(ary.data(), ary.size() - 1);
|
||||
}
|
||||
|
||||
template <typename I, typename C=char>
|
||||
std::basic_string_view<C> to_string_view (I num) {
|
||||
return std::basic_string_view<C>(int_to_ary(num));
|
||||
}
|
||||
#endif
|
||||
} //namespace dhandy
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue