Skip to content

Commit 0fd357f

Browse files
Fix for YAML 0.8.0.
1 parent e426c7c commit 0fd357f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugin/include/txn_box/yaml_util.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ swoc::Rv<YAML::Node> yaml_load(swoc::file::path const &path);
106106

107107
namespace YAML
108108
{
109+
# if !defined(YAML_H_62B23520_7C8E_11DE_8A39_0800200C9A66)
109110
// Need these to pass views in to node indexing.
110111
template <> struct convert<std::string_view> {
111112
static Node
@@ -123,6 +124,7 @@ template <> struct convert<std::string_view> {
123124
return true;
124125
}
125126
};
127+
#endif
126128

127129
template <> struct convert<swoc::TextView> {
128130
static Node

0 commit comments

Comments
 (0)