view: use alignment cast for casting

This commit is contained in:
Danny Robson 2018-05-10 12:52:22 +10:00
parent ec44c68ce6
commit 2c919a6582

View File

@ -343,8 +343,8 @@ namespace util {
cast (void) const
{
return {
reinterpret_cast<ValueT> (m_begin),
reinterpret_cast<ValueT> (m_end)
util::cast::alignment<ValueT> (m_begin),
util::cast::alignment<ValueT> (m_end)
};
}