2024-05-31 22:59:00 -04:00
|
|
|
#ifndef RFL_NOOPTIONALS_HPP_
|
|
|
|
#define RFL_NOOPTIONALS_HPP_
|
|
|
|
|
|
|
|
namespace rfl {
|
|
|
|
|
2024-06-08 14:10:59 -04:00
|
|
|
/// This is a "fake" processor - it doesn't do much in itself, but its
|
|
|
|
/// inclusion instructs the parsers to require the inclusion of all fields.
|
|
|
|
struct NoOptionals {
|
|
|
|
public:
|
|
|
|
template <class StructType>
|
|
|
|
static auto process(auto&& _named_tuple) {
|
|
|
|
return _named_tuple;
|
|
|
|
}
|
|
|
|
};
|
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
|