Topic: why std::random_device::result_type isnt


Author: euloanty@live.com
Date: Tue, 11 Apr 2017 14:14:25 -0700 (PDT)
Raw View
------=_Part_10184_860723704.1491945265352
Content-Type: multipart/alternative;
 boundary="----=_Part_10185_1360580377.1491945265352"

------=_Part_10185_1360580377.1491945265352
Content-Type: text/plain; charset=UTF-8

why std::random_device::result_type isnt implementation-defined or
std::size_t?
unsigned int isn't good since we will never know its size

--
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/eac94f80-d2f9-47e7-b73d-b8280be153bd%40isocpp.org.

------=_Part_10185_1360580377.1491945265352
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">why std::random_device::result_type isnt implementation-de=
fined or std::size_t?<br>unsigned int isn&#39;t good since we will never kn=
ow its size</div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/eac94f80-d2f9-47e7-b73d-b8280be153bd%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/eac94f80-d2f9-47e7-b73d-b8280be153bd=
%40isocpp.org</a>.<br />

------=_Part_10185_1360580377.1491945265352--

------=_Part_10184_860723704.1491945265352--

.


Author: Nicol Bolas <jmckesson@gmail.com>
Date: Tue, 11 Apr 2017 15:12:42 -0700 (PDT)
Raw View
------=_Part_1244_886921538.1491948762499
Content-Type: multipart/alternative;
 boundary="----=_Part_1245_1858111069.1491948762499"

------=_Part_1245_1858111069.1491948762499
Content-Type: text/plain; charset=UTF-8

On Tuesday, April 11, 2017 at 5:14:25 PM UTC-4, ejsvifq mabmip wrote:
>
> why std::random_device::result_type isnt implementation-defined or
> std::size_t?
> unsigned int isn't good since we will never know its size
>

We never know the size of `size_t` either. Since the size of `unsigned int`
is also implementation defined, what does it matter if the standard said
that `result_type` was implementaiton-defined or `unsigned int`? In both
cases, you "will never know its size".

--
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/8d3f00ec-78b6-4b58-af90-8d91e382fec1%40isocpp.org.

------=_Part_1245_1858111069.1491948762499
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On Tuesday, April 11, 2017 at 5:14:25 PM UTC-4, ejsvifq ma=
bmip wrote:<blockquote class=3D"gmail_quote" style=3D"margin: 0;margin-left=
: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir=3D"ltr">wh=
y std::random_device::result_<wbr>type isnt implementation-defined or std::=
size_t?<br>unsigned int isn&#39;t good since we will never know its size</d=
iv></blockquote><div><br>We never know the size of `size_t` either. Since t=
he size of `unsigned int` is also implementation defined, what does it matt=
er if the standard said that `result_type` was implementaiton-defined or `u=
nsigned int`? In both cases, you &quot;will never know its size&quot;.<br><=
/div></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/8d3f00ec-78b6-4b58-af90-8d91e382fec1%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/8d3f00ec-78b6-4b58-af90-8d91e382fec1=
%40isocpp.org</a>.<br />

------=_Part_1245_1858111069.1491948762499--

------=_Part_1244_886921538.1491948762499--

.