I am coding c++ in visual studio 2015. I have files called superpixel.h and superpixel.cpp. I wanted to use templates for some of the functions but I read that I cant define templates in cpp files. I don't want to define the templates in the header file because it will just make my code messy with definitions in header and cpp files.
Is there a work around to this ? Do I have to switch all my cpp files to hpp ?
No comments:
Post a Comment