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
663
663
// ! Get the maximum number of bytes (excluding the trailing '\0') that can be stored within a basic_utf8_string object
664
664
static constexpr inline size_type get_sso_capacity () noexcept { return sizeof (SSO::data); }
665
665
666
- // ! Helpers for the constructors
666
+ // ! SFINAE helpers for constructors
667
667
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;
669
669
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
+
671
672
// Template to enable overloads, if the supplied type T is a character array without known bounds
672
673
template <typename T, typename CharType, typename _DataType = bool >
673
674
using enable_if_ptr = typename std::enable_if<
You can’t perform that action at this time.
0 commit comments