forked from Alepha/Alepha
Get it building again.
This commit is contained in:
@ -227,11 +227,8 @@ namespace Alepha::Hydrogen ::detail:: Blob_m
|
||||
* possible extra space, due to alignment).
|
||||
*/
|
||||
Blob
|
||||
carveHead( const std::size_t unalignedAmount, Alignment alignment= Alignment{ 1 } )
|
||||
carveHead( const std::size_t amount )
|
||||
{
|
||||
assert( std::popcount( alignment.amt ) == 1 );
|
||||
// TODO: Consider arithmetic overflow, here.
|
||||
const std::size_t amount= alignTo( ( reinterpret_cast< std::uintptr_t >( data() ) % alignment.amt ) + unalignedAmount, alignment );
|
||||
if( amount > size() ) throw DataCarveTooLargeError( data(), amount, size() );
|
||||
if( not storage )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user