I've two files: 1) A .h header file that cross reference a struct in a general header file that back referencing other structs inside my .h header file.
2) The struct I reference in 1) is in a general header file which does not reference other structs. 3) When I include general.h, it won't compile for other structs in 1) header file.
Here is 1) my .h file, it include general.h file in order to reference IntervalFilter:
...
struct AgentConfig {
AgentConfig();
IntervalFilter<int> myFilter;
other structs
...
}
But general.h file include 1) and reference other structs inside the file.
Any advice as to the syntax?
Thanks!