C++26 std:indirect Type and PImpl Idiom
- PImpl idiom gets a boost with C++26 std:indirect type
- Experts discuss the benefits and limitations of this new feature
- Community reactions range from excitement to skepticism
The Buzz Score
The Internet’s Verdict: 70% Hyped, 30% Skeptical
Expert Insights
Some experts are excited about the new feature, with one saying:
I have a little class called EImpl that is kind of like std::indirect except that it embeds the impl instead of pointing to it.
Others are more cautious, wondering if it’s necessary:
Hmm. Do people use PIMPL that much that we need std library support?
Community Reaction
Some users are concerned about the potential gotchas:
This looks great indeed – I wonder if there are any particular gotchas, though, as things often are in C++next land.
Focus Keyword: C++26 PImpl