Check for another kind of definition fail.

We can't be both legacy and modern at the same time.
This commit is contained in:
2024-04-27 00:16:26 -04:00
parent aff534f6b5
commit a5c3ea37a1
+10
View File
@@ -247,6 +247,16 @@ namespace Planets ::detail:: Generate_m
} }
std::cerr << " yes" << std::endl; std::cerr << " yes" << std::endl;
if( star.Index )
{
const std::string mesg= "Solar system with modern generator (`"s
+ star.supplement + "`) has a legacy index!";
std::cerr << mesg << std::endl;
throw std::runtime_error{ mesg };
}
} }
} }
} }