ezconfig
Create C++ Objects from Yaml and Json
Loading...
Searching...
No Matches
include
ezconfig
yaml_types
enum_fwd.hpp
1
// Copyright (c) 2023 Petter Nilsson. MIT License. https://github.com/pettni/ezconfig
2
3
#pragma once
4
5
#include <type_traits>
6
7
namespace
ezconfig {
8
9
template
<
typename
T>
10
concept
ScopedEnum
=
requires
{ std::is_enum_v<T> && !std::is_convertible_v<T, std::underlying_type_t<T>>; };
11
12
}
// namespace ezconfig
13
14
namespace
YAML
{
15
16
// forward declarations
17
template
<
typename
T>
18
struct
convert;
19
20
class
Node;
21
25
template
<ezconfig::ScopedEnum T>
26
struct
convert<T>
27
{
28
static
bool
decode(
const
Node & yaml, T & obj);
29
};
30
31
}
// namespace YAML
ezconfig::ScopedEnum
Definition
enum_fwd.hpp:10
YAML
YAML forward declarations.
Definition
yaml_fwd.hpp:16
Generated by
1.12.0