xo-ratio: + xo_reflectutil feature + utest

This commit is contained in:
Roland Conybeare 2024-08-05 14:34:14 -04:00
commit 102fbf4a16
4 changed files with 60 additions and 0 deletions

View file

@ -0,0 +1,25 @@
/** @file ratio_reflect.hpp
*
* Author: Roland Conybeare
**/
#pragma once
#include "xo/reflectutil/reflect_struct_info.hpp"
#include "ratio.hpp"
//#include <cstdint>
namespace xo {
namespace reflect {
template <typename Int>
REFLECT_BASE_STRUCT_INFO_TBODY(xo::ratio::ratio<Int>, 2);
template <typename Int>
REFLECT_STRUCT_MEMBER_INFO_TBODY(xo::ratio::ratio<Int>, 0, num);
template <typename Int>
REFLECT_STRUCT_MEMBER_INFO_TBODY(xo::ratio::ratio<Int>, 1, den);
}
}
/** end ratio_reflect.hpp **/