This repository was archived by the owner on Aug 29, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -663,11 +663,12 @@ namespace tiny_utf8
663663 // ! Get the maximum number of bytes (excluding the trailing '\0') that can be stored within a basic_utf8_string object
664664 static constexpr inline size_type get_sso_capacity () noexcept { return sizeof (SSO::data); }
665665
666- // ! Helpers for the constructors
666+ // ! SFINAE helpers for constructors
667667 template <size_type L>
668- using enable_if_small_string = typename std::enable_if<( L <= get_sso_capacity( ) ), bool >::type;
668+ using enable_if_small_string = typename std::enable_if<( L <= sizeof (SSO::data ) ), bool >::type;
669669 template <size_type L>
670- using enable_if_not_small_string = typename std::enable_if<( L > get_sso_capacity () ), bool>::type;
670+ using enable_if_not_small_string = typename std::enable_if<( L > sizeof (SSO::data) ), bool >::type;
671+
671672 // Template to enable overloads, if the supplied type T is a character array without known bounds
672673 template <typename T, typename CharType, typename _DataType = bool >
673674 using enable_if_ptr = typename std::enable_if<
You can’t perform that action at this time.
0 commit comments