mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2024-12-23 21:25:49 +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:
|
// 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 {
|
SPROUT_CONSTEXPR operator basic_string<T, N2, Traits>() const {
|
||||||
static_assert(N <= N2, "basic_string<>: implicit conversion to small string");
|
|
||||||
return implicit_conversion_impl(
|
return implicit_conversion_impl(
|
||||||
elems,
|
elems,
|
||||||
len,
|
len,
|
||||||
|
|
Loading…
Reference in a new issue