ezconfig
Create C++ Objects from Yaml and Json
Loading...
Searching...
No Matches
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
7namespace ezconfig {
8
9template<typename T>
10concept ScopedEnum = requires { std::is_enum_v<T> && !std::is_convertible_v<T, std::underlying_type_t<T>>; };
11
12} // namespace ezconfig
13
14namespace YAML {
15
16// forward declarations
17template<typename T>
18struct convert;
19
20class Node;
21
25template<ezconfig::ScopedEnum T>
26struct convert<T>
27{
28 static bool decode(const Node & yaml, T & obj);
29};
30
31} // namespace YAML
YAML forward declarations.
Definition yaml_fwd.hpp:16