@@ -14,15 +14,14 @@ constexpr auto DEFAULT{MakeAttrs(PopulationSize(100), GenerationLength(100),
14
14
// Notice that this function has a different ordering than DEFAULT
15
15
void print (
16
16
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) {
19
19
std::cout << name << " = " << args << std::endl;
20
20
}
21
21
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) {
26
25
std::cout << name << " = " << args << std::endl;
27
26
}
28
27
@@ -43,10 +42,10 @@ int main() {
43
42
" Using Universal Constructor: " ,
44
43
{PopulationSize (1 ), DefaultGenome (" Hello World" ), GenerationLength (50 )});
45
44
46
- Attrs<typename PopulationSize::value_t <size_t >,
45
+ Attrs<typename PopulationSize::value_t <int >,
47
46
typename DefaultGenome::value_t <std::string>, // Notice that this will
48
47
// be auto-converted
49
- typename GenerationLength::value_t <size_t >>
48
+ typename GenerationLength::value_t <int >>
50
49
user = DEFAULT;
51
50
// Set a single member
52
51
user.SetDefaultGenome (" ASDEDFDFSA" );
0 commit comments