mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-04 14:14:09 +00:00
fix string_ref
This commit is contained in:
parent
2e0bc89188
commit
84376c3f69
64 changed files with 204 additions and 128 deletions
|
@ -13,7 +13,7 @@
|
|||
#include <sprout/string/npos.hpp>
|
||||
#include <sprout/string/string.hpp>
|
||||
#include <sprout/string/detail/operations.hpp>
|
||||
#include HDR_ALGORITHM_SSCRISK_CEL_OR_SPROUT
|
||||
#include HDR_ALGORITHM_MIN_MAX_SSCRISK_CEL_OR_SPROUT
|
||||
#if SPROUT_USE_INDEX_ITERATOR_IMPLEMENTATION
|
||||
# include <sprout/iterator/index_iterator.hpp>
|
||||
#endif
|
||||
|
@ -554,6 +554,11 @@ namespace sprout {
|
|||
//
|
||||
// to_string_ref
|
||||
//
|
||||
template<typename T, typename Traits>
|
||||
inline SPROUT_CONSTEXPR sprout::basic_string_ref<T, Traits>
|
||||
to_string_ref(sprout::basic_string_ref<T, Traits> const& s) {
|
||||
return s;
|
||||
}
|
||||
template<typename T, std::size_t N, typename Traits>
|
||||
inline SPROUT_CONSTEXPR sprout::basic_string_ref<T, Traits>
|
||||
to_string_ref(sprout::basic_string<T, N, Traits> const& s) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue