adiar icon indicating copy to clipboard operation
adiar copied to clipboard

Turn `size_t` into an alias for `tpie::stream_size_type`

Open SSoelvsten opened this issue 2 years ago • 1 comments

The tpie::stream_size_type is designed specifically to ensure large enough numbers are supported on a system, e.g. on some systems std::size_t is a 32-bit integer whereas tpie::stream_size_type always is (at least?) 64-bits.

SSoelvsten avatar Dec 01 '22 10:12 SSoelvsten

Also, we should use std::size_t from <stddef.h> if anything rather than size_t from <stdint.h>. Based on the machine type in question (does it have 64-bit support or not?) we can define the adiar::size_t.

SSoelvsten avatar Jan 16 '23 08:01 SSoelvsten