3 ms·
The reason Boost is headers only is you have to be a header to be generic. Implementations outside of headers have to friend / otherwise be not truly generic.
by TheDong 12y ago
The reason Boost is headers only is you have to be a header to be generic. Implementations outside of headers have to friend / otherwise be not truly generic.
- jgh 12y agoYes, good point. You're right about that.
- deleted 12y ago[deleted]
- theyoungestgun 12y agoAssuming you mean friend in the standard cpp way, that's not exactly correct. http://stackoverflow.com/questions/495021/why-can-templates-only-be-implemented-in-the-header-file http://stackoverflow.com/questions/495021/why-can-templates-...