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