Since it appears that your Grid2D is a template class that you then specify by telling it what to use internally, it should be sufficient to declare the actual struct-type you need for each specific grid:
struct fluidProperties1 {
float foo;
float bar;
};
struct fluidProperties2 {
float foo;
};
struct fluidProperties3 {
float bar;
float baz;
};
Grid2D<fluidProperties1> grid1;
Grid2D<fluidProperties2> grid2;
Grid2D<fluidProperties2> grid3;
If this isn't what you had in mind, please clarify your use case a bit more.
raptr_dflo
Practically a Master Poster
605 posts since Aug 2010
Reputation Points: 76
Solved Threads: 83
Skill Endorsements: 1