C++ Logo

sg14

Advanced search

Re: [SG14] sizeof_block_metadata function, colony/hive, advice wanted

From: Matt Bentley <mattreecebentley_at_[hidden]>
Date: Fri, 26 Nov 2021 11:46:47 +1300
On 26/11/2021 7:54 am, Ben Saks via SG14 wrote:
> +1 to Ben Craig's request for a motivational example. A couple of other
> points to consider:
>
> * Could it be a static member function rather than a const member
> function? If I understand, this seems like it might be data that you'd
> want to use to create a container, rather than a question you'd want to
> ask of an existing container.

That's a good point.


> * Either way, I imagine that it could and should be a constexpr function.
>
> Regards,
> Ben Saks

Received on 2021-11-25 16:46:51