cpp_weekly icon indicating copy to clipboard operation
cpp_weekly copied to clipboard

module for (template) headers-only library

Open Dharmesh946 opened this issue 1 month ago • 0 comments

Channel

C++Weekly

Topics

How to make a module out of headers-only library (possibly template if it matters)? A quick scan of the web seems to point many issues, noticeably the need for a Binary Module Interface, which seem contradictory with the idea of headers-only and template code. Though it is most certainly possible (import std).

How to do that with CMake for maximal portability?

Length

I'm guessing that with the right info it can be quite short (< 10')

Relates #115 and #488

Dharmesh946 avatar Nov 25 '25 10:11 Dharmesh946