Not sure if I get this. So what you/Radu suggest is to put template definitions in 'intersections.cpp' (to preserve this file) and from 'intersections.h' include it instead of 'hpp'?