C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Proposal: std::obj_from_dmbr

From: Walt Karas <wkaras_at_[hidden]>
Date: Sun, 21 Aug 2022 23:10:04 +0000 (UTC)
Yes I'd bet big this technique is an often reinvented wheel.
Why do you prefer two static casts involving void * over a reinterpret cast? Also, your C style cast is really a reinterpret cast. I think the reason for having reinterpret cast is that it's a (greppable) warning that something is dangerous. And this technique is fairly dangerous, mistakes can elude static checking.
Sent from Yahoo Mail on Android
 
  On Sun, Aug 21, 2022 at 4:38 PM, Phil Bouchard via Std-Proposals<std-proposals_at_[hidden]> wrote: --
Std-Proposals mailing list
Std-Proposals_at_[hidden]
https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
  

Received on 2022-08-21 23:10:15