4 ms·
It is generally dubious but you could easily end up with an optional containing a pointer if you're using templates. The type would predictably leak into parts
by klodolph 8y ago
It is generally dubious but you could easily end up with an optional containing a pointer if you're using templates. The type would predictably leak into parts of the code base calling the templated code.
There are a bunch of other parts of the C++ code base that are the same way. The most notorious one I can think of is std::declval, which just makes no sense whatsoever unless it appears inside another template.