mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-12-03 00:26:19 +08:00
* First part * Plural * Update rfl.hpp * Documentation * Update rfl.hpp * Update processors.md * underlying_enums test * Update Parser_default.hpp * Fix typo in test
19 lines
419 B
C++
19 lines
419 B
C++
#ifndef RFL_UNDERLYINGENUMS_HPP_
|
||
#define RFL_UNDERLYINGENUMS_HPP_
|
||
|
||
namespace rfl {
|
||
|
||
/// This is a ‘fake’ processor - it doesn't do much by itself, but its
|
||
/// its inclusion instructs parsers not to convert enum types to strings, but to integers
|
||
struct UnderlyingEnums {
|
||
public:
|
||
template <class StructType>
|
||
static auto process(auto&& _named_tuple) {
|
||
return _named_tuple;
|
||
}
|
||
};
|
||
|
||
} // namespace rfl
|
||
|
||
#endif
|