On Aug 19, 2019, at 12:08 PM, Niall Douglas via Liaison <liaison@lists.isocpp.org> wrote:
>
> There is precedent here. You can ask POSIX what kind of inode a file
> descriptor refers to. Same goes here for native handle type, which
> similarly refers to some implementation-defined-structure-elsewhere.
> Indeed, as you may have noticed in my forwarded message to WG14, one
> could even use mode_t as the union discriminant on POSIX platforms.
>
Let me ask you again a question that you elided when you quoted me:
If the standard adds support for determining the type (for whatever meaning of “type” is involved here), what then? What can you do **portably** that you can’t do **portably** without that information?
-- Pete
Roundhouse Consulting, Ltd.
_______________________________________________
Liaison mailing list
Liaison@lists.isocpp.org
Subscription:
https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.isocpp.org%2Fmailman%2Flistinfo.cgi%2Fliaison&data=02%7C01%7Cbion%40microsoft.com%7C9123b70ecc8d4e85f2c908d724c68493%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637018307362235783&sdata=7z4XaFIjjZRhhDQiqakJ%2F5YUV9P5vNpHyVtu0fEZxEU%3D&reserved=0
Link to this post:
https://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.isocpp.org%2Fliaison%2F2019%2F08%2F0037.php&data=02%7C01%7Cbion%40microsoft.com%7C9123b70ecc8d4e85f2c908d724c68493%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637018307362245779&sdata=ReSu1TaviaEHz5RVyY3CBVsIICbmWd3lX2Oz%2BAb9Fb4%3D&reserved=0