Files
BloomPatched/src/Helpers/YamlUtilities.hpp

19 lines
309 B
C++

#pragma once
#include <yaml-cpp/yaml.h>
class YamlUtilities
{
public:
template <typename Type>
static bool isCastable(const YAML::Node& node) {
try {
node.as<Type>();
return true;
} catch (YAML::BadConversion&) {
return false;
}
}
};