Skip to content

Commit

Permalink
[config] Removed template definition from src file to inline in confi…
Browse files Browse the repository at this point in the history
…guration_to_yaml.cpp (#1910)
  • Loading branch information
Peguen authored Jan 17, 2025
1 parent 0d80ae4 commit 6eb2418
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
7 changes: 0 additions & 7 deletions ecal/core/src/config/configuration_to_yaml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,6 @@
// utility functions for yaml node handling
namespace YAML
{
template<typename AS, typename MEM>
void AssignValue(MEM& member, const YAML::Node& node_, const char* key)
{
if (node_[key])
member = node_[key].as<AS>();
}

eCAL::Logging::Filter ParseLogLevel(const std::vector<std::string>& filter_)
{
// create excluding filter list
Expand Down
6 changes: 5 additions & 1 deletion ecal/core/src/config/configuration_to_yaml.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ namespace YAML
{
// Utility function to be used also in other files
template<typename AS, typename MEM>
void AssignValue(MEM& member, const YAML::Node& node_, const char* key);
inline void AssignValue(MEM& member, const YAML::Node& node_, const char* key)
{
if (node_[key])
member = node_[key].as<AS>();
}


/*
Expand Down

0 comments on commit 6eb2418

Please sign in to comment.