Skip to content

Commit

Permalink
Avoid windows type confusion
Browse files Browse the repository at this point in the history
  • Loading branch information
emilydolson committed Nov 26, 2023
1 parent f0d9d42 commit 2a00356
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/emp/Evolve/Systematics.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -375,15 +375,15 @@ namespace emp {
/// Add a data node to this systematics manager
/// @param name the name of the data node (so it can be found later)
data_ptr_t AddDataNode(const std::string & name) {
emp_optional_throw(!data_nodes.HasNode(name), "Invalid node name, already exists", name);
emp_optional_throw(!(bool)data_nodes.HasNode(name), "Invalid node name, already exists", name);
return &(data_nodes.New(name));
}

/// Add a data node to this systematics manager
/// @param name the name of the data node (so it can be found later)
/// @param pull_set_fun a function to run when the data node is requested to pull data (returns vector of values)
data_ptr_t AddDataNode(std::function<emp::vector<double>()> pull_set_fun, const std::string & name) {
emp_optional_throw(!data_nodes.HasNode(name), "Invalid node name, already exists", name);
emp_optional_throw(!(bool)data_nodes.HasNode(name), "Invalid node name, already exists", name);
auto node = AddDataNode(name);
node->AddPullSet(pull_set_fun);
return node;
Expand All @@ -393,7 +393,7 @@ namespace emp {
/// @param name the name of the data node (so it can be found later)
/// @param pull_fun a function to run when the data node is requested to pull data (returns single value)
data_ptr_t AddDataNode(std::function<double()> pull_fun, const std::string & name) {
emp_optional_throw(!data_nodes.HasNode(name), "Invalid node name, already exists", name);
emp_optional_throw(!(bool)data_nodes.HasNode(name), "Invalid node name, already exists", name);
auto node = AddDataNode(name);
node->AddPull(pull_fun);
return node;
Expand Down

0 comments on commit 2a00356

Please sign in to comment.