<div dir="auto"><div data-smartmail="gmail_signature" dir="auto">On 9 Jan 2018 6:31 pm, "Sandro Santilli" <<a href="mailto:strk@kbt.io">strk@kbt.io</a>> wrote:<br></div><div class="gmail_extra" dir="auto"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Tue, Jan 09, 2018 at 06:57:00AM -0800, Paul Ramsey wrote:<br>
> On Sun, Dec 31, 2017 at 1:55 AM, Sandro Santilli <<a href="mailto:strk@kbt.io">strk@kbt.io</a>> wrote:<br>
> > On Sat, Dec 30, 2017 at 12:53:26PM -0800, Paul Norman wrote:<br>
> >><br>
> >> I've been in the habit of using size_t from C++, where it's what all the STL<br>
> >> size-related operators use, and thus what you get when you use auto.<br>
> ><br>
> > In C++ size_t is usually typedef'ed per-class, as if you could for<br>
> > example define POINTARRAY::size_t to be == uint32_t<br>
><br>
> Re-upping this, I don't have any objection to changing our counters<br>
> (npoints, ngeoms) to uint32_t globally, if someone is willing to do<br>
> all the grooming and cleaning that will imply.<br>
> (referencing <a href="https://github.com/postgis/postgis/pull/183" rel="noreferrer" target="_blank">https://github.com/postgis/<wbr>postgis/pull/183</a>)<br>
> I'm definitely not interested in going to size_t, cute though that is.<br>
<br>
I'd note that Daniel Baston suggestion of npoints_t, ngeoms_t typedefs<br>
is very similar to the C++ per-class typedef.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">I'd note there are no per-class size_t aliases. </div><div dir="auto">There is T::size_type however it is an old convention. These days memory sizes in at library are guaranteed to be specified in std::size_t (std::vector::size_type is std::size_t as is value returned by sizeof operator or std::size() and similar functions). </div><div class="gmail_extra" dir="auto"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"></blockquote></div><br></div><div class="gmail_extra" dir="auto">Mateusz </div></div>