
On 5 June 2014 15:40, Peter Dimov
On the other hand, the whole purpose of forward declarations is to let you not depend on the definition. This is still valuable when the _fwd header is in the same module, as it decreases the actual dependencies in terms of headers included, but this decrease doesn't show up in a module dependency report. Neither will it affect a module-based automatic downloader.
Someone suggested having dependencies on a subset of a module. Could set one up so that not all the headers are soft-linked.
Incidentally, 'functional/hash' has always bothered me. What was wrong with just 'hash'? Hierarchies do have its place but hash is hash, nothing particularly functional about it.
It was because std::hash is part of the functional header.