22 Jun
2015
22 Jun
'15
5:07 p.m.
Le 22/06/15 12:42, Peter Dimov a écrit :
Edouard wrote:
However when headers are too fine grained it's almost impossible for the user of a library to know what should be included.
With properly fine-grained headers, it's trivial to know what should be included - if you use, for instance, mp_transform, you include mp_transform.hpp. That's overkill if many mp_ things are one-liners, of course. But my point is that "not knowing what to include" is not one of the problems with "too fine grained".
I like fine grained headers because it states explicitly the dependencies between the different classes and/or functions. Vicente