Are you including that Voronoi header in your TerrainGenerator header?
In order to have a non-pointer, non-reference member variable you need the full type definition. Hence the include is required. It works in your cpp because that includes the Voronoi header.