0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-03 04:02:47 +01:00

ircd::stringops: Assert and satisfy these conversions.

This commit is contained in:
Jason Volk 2019-08-03 17:07:54 -07:00
parent 47e2f92eda
commit 36b64f863b

View file

@ -27,9 +27,10 @@ noexcept
}) })
}; };
assert(intptr_t(begin(out)) <= intptr_t(end));
return string_view return string_view
{ {
data(out), std::distance(begin(out), end) data(out), size_t(std::distance(begin(out), end))
}; };
} }
@ -52,9 +53,10 @@ noexcept
}) })
}; };
assert(intptr_t(begin(out)) <= intptr_t(end));
return string_view return string_view
{ {
data(out), std::distance(begin(out), end) data(out), size_t(std::distance(begin(out), end))
}; };
} }