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 b4e3996 commit 87cad79
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.HasNoNode(name), "Invalid node name, already exists", name);
emp_optional_throw(data_nodes.HasNoNode(name), "Invalid node name, already exists");
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.HasNoNode(name), "Invalid node name, already exists", name);
emp_optional_throw(data_nodes.HasNoNode(name), "Invalid node name, already exists");
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.HasNoNode(name), "Invalid node name, already exists", name);
emp_optional_throw(data_nodes.HasNoNode(name), "Invalid node name, already exists");
auto node = AddDataNode(name);
node->AddPull(pull_fun);
return node;
Expand Down

0 comments on commit 87cad79

Please sign in to comment.