How do I create a header-only library?

前端 未结 4 1896
花落未央
花落未央 2020-12-23 02:29

I\'d like to package a library I\'m working on as a header-only library to make it easier for clients to use. (It\'s small and there\'s really no reason to put it into a sep

4条回答
  •  孤城傲影
    2020-12-23 03:07

    Also, I think you'll need to avoid any use of global variables or static variables in your header-only-library code.

提交回复
热议问题