My c++ software uses another repo that collects common classes/functions. Quite often, my software only uses one of a few related classes presented in one header file. Say the external repo has a file "data_types.h", with three classes.
class X { // definition }
class Y { // definition }
class Z { // definition }
My project uses class Y
from the header. When releasing to customers, I need to include my lib file together with the definition of this class Y
. How can I hide the classes X and Z (since they are not used in my project) from the customers?
Is there some kind wrapper approach to recommend?