After reading this article Saving function definitions of C ++ templates in a .CPP file , I know that the definition of a class using a template must be written in the file header somehow. Thus, the client user can use it by importing header files. Does this not mean that the full implementation information is disclosed to the user? Does this mean that a library written with a template should be open source?
Thanks for the help in clarifying.
. , , , . , , .
, . , - , , . , , . , , , , , .
, ++ . - , "open source". Microsoft MFC, . .
This means that based on library templates, there is usually the source code for the source, yes. This is not particularly similar to the way open source is commonly used. Again, most good libraries provide source code anyway.
Source: https://habr.com/ru/post/1796582/More articles:How to use, but not disclose the built-in function in the c99 library? - cJSF2/......registerHostUser.xhtml @9,9 Библиотека тегов поддерживает пространство имен: http://java.sun.com/jsf/html, но для имени не было определено ни одного тега: head - mavenHow to write tests for facebook graph api in my rails application? - ruby-on-railsDoes the global configuration class have a bad one? - c #How to draw this tree as a lattice structure in Matlab? - matlabhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1796583/passing-args-to-a-js-command-line-utility-node-or-narwhal&usg=ALkJrhj2Pa5oasG0JKEbKGYz5WiOS7NE-gsending django signals from django-admin command? - pythonCreate an object based on the class name provided in the text file? - c ++Show number with indicated number of significant digits - wolfram-mathematicaWindows 7 GDI Acceleration Mystery: Можем ли мы включить ее программно? Да мы (вроде) можем! Но как? - winapiAll Articles