12 ms·
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::__gn
by MauranKilom 4y ago
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.
- deadbeeves 4y agoHmm... Good point. I don't think it's a portable solution.
- account42 4y agoIt also would allow anyone to construct your class via make_* which kind of defeats the point of making the constructor private in the first place.