mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 10:12:39 +01:00
ircd::stringops: Assert and satisfy these conversions.
This commit is contained in:
parent
47e2f92eda
commit
36b64f863b
1 changed files with 4 additions and 2 deletions
|
@ -27,9 +27,10 @@ noexcept
|
|||
})
|
||||
};
|
||||
|
||||
assert(intptr_t(begin(out)) <= intptr_t(end));
|
||||
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
|
||||
{
|
||||
data(out), std::distance(begin(out), end)
|
||||
data(out), size_t(std::distance(begin(out), end))
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue