Re:C++ by Example
by MauranKilom on Thursday September 22, 2022 @12:26PM
(#32941188)
That only works if `std::make_*` is actually where `new` is called. It could just as well be called deeper in some library implementation detail like `std::__gnu_cxx_v3::__construct_as(...)` (made up example), in which case you're SOL.
[ Parent
| on HN ]
Re:C++ by Example
by deadbeeves on Thursday September 22, 2022 @12:29PM
(#32941215)
Hmm... Good point. I don't think it's a portable solution.