@@ -14,15 +14,14 @@ constexpr auto DEFAULT{MakeAttrs(PopulationSize(100), GenerationLength(100),
1414// Notice that this function has a different ordering than DEFAULT
1515void print (
1616 const std::string& name,
17- const Attrs<PopulationSizeValue<size_t >, DefaultGenomeValue<std::string>,
18- GenerationLengthValue<size_t >>& args) {
17+ const Attrs<PopulationSizeValue<int >, DefaultGenomeValue<std::string>,
18+ GenerationLengthValue<int >>& args) {
1919 std::cout << name << " = " << args << std::endl;
2020}
2121
22- void printSubset (
23- const std::string& name,
24- const Attrs<typename PopulationSize::value_t <size_t >,
25- typename GenerationLength::value_t <size_t >>& args) {
22+ void printSubset (const std::string& name,
23+ const Attrs<typename PopulationSize::value_t <int >,
24+ typename GenerationLength::value_t <int >>& args) {
2625 std::cout << name << " = " << args << std::endl;
2726}
2827
@@ -43,10 +42,10 @@ int main() {
4342 " Using Universal Constructor: " ,
4443 {PopulationSize (1 ), DefaultGenome (" Hello World" ), GenerationLength (50 )});
4544
46- Attrs<typename PopulationSize::value_t <size_t >,
45+ Attrs<typename PopulationSize::value_t <int >,
4746 typename DefaultGenome::value_t <std::string>, // Notice that this will
4847 // be auto-converted
49- typename GenerationLength::value_t <size_t >>
48+ typename GenerationLength::value_t <int >>
5049 user = DEFAULT;
5150 // Set a single member
5251 user.SetDefaultGenome (" ASDEDFDFSA" );
0 commit comments