Skip to content

Commit

Permalink
ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitri Rusin committed Jan 19, 2024
1 parent 69636de commit 654ef60
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/ioh/common/factory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,13 @@ namespace ioh::common
const auto already_defined = name_map.find(name) != std::end(name_map);


// Check if the name is empty and ignore it if so
if (name.empty()) {
std::cerr << "Ignoring attempt to include an entry with an empty name." << std::endl;
return; // Exit the function early
}


std::cerr << "Including in factory:" << std::endl;
std::cerr << "Name: " << name << std::endl;
std::cerr << "ID: " << id << std::endl;
Expand Down

0 comments on commit 654ef60

Please sign in to comment.