I have made a header file with a templated dynamic array class that I wish to convert into secure code. The problem is that since all of the code relies on the Template I cannot put it into a static library. Any ideas how I could still make the source hidden, but keep functionality public?
Labdabeta
182
Posting Pro in Training
Featured Poster
Recommended Answers
Jump to PostThere are a few options. But this is a classic problem with templated code. For instance, the STL libraries are not compiled (so basically, standard C++ libraries are open-source).
The first option is to put all the definitions of the member functions inside a .cpp file and #include the …
All 2 Replies
mike_2000_17
2,669
21st Century Viking
Team Colleague
Featured Poster
Labdabeta
182
Posting Pro in Training
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.