draconisplusplus/include/rfl/default.hpp

15 lines
262 B
C++
Raw Normal View History

2024-05-31 22:59:00 -04:00
#ifndef RFL_DEFAULT_HPP_
#define RFL_DEFAULT_HPP_
namespace rfl {
/// Helper class that can be passed to a field
/// to trigger the default value of the type.
struct Default {};
inline static const auto default_value = Default{};
} // namespace rfl
#endif