mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2024-11-12 21:09:01 +00:00
basic_string の暗黙変換を SFINAE に変更
This commit is contained in:
parent
6f2be58007
commit
e660c7261f
1 changed files with 1 additions and 2 deletions
|
@ -507,9 +507,8 @@ namespace sprout {
|
|||
;
|
||||
}
|
||||
// others:
|
||||
template<std::size_t N2>
|
||||
template<std::size_t N2, typename Enable = typename std::enable_if<(N2 > N)>::type>
|
||||
SPROUT_CONSTEXPR operator basic_string<T, N2, Traits>() const {
|
||||
static_assert(N <= N2, "basic_string<>: implicit conversion to small string");
|
||||
return implicit_conversion_impl(
|
||||
elems,
|
||||
len,
|
||||
|
|
Loading…
Reference in a new issue