How to make closed source for the library written with template in C++

后端 未结 3 1653
青春惊慌失措
青春惊慌失措 2021-01-21 01:30

After reading this article Storing C++ template function definitions in a .CPP file, I know that the definition of a class that uses template has to be written in the header fil

3条回答
  •  攒了一身酷
    2021-01-21 02:00

    Yes, template-based C++ libraries expose their implementations. Providing source is not the same thing as "open source." Microsoft supplies the source to MFC, but it isn't open source. The license makes the difference.

提交回复
热议问题