xo-ratio: + xo_reflectutil feature + utest
This commit is contained in:
parent
ae69a418ff
commit
102fbf4a16
4 changed files with 60 additions and 0 deletions
25
include/xo/ratio/ratio_reflect.hpp
Normal file
25
include/xo/ratio/ratio_reflect.hpp
Normal 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 **/
|
||||
Loading…
Add table
Add a link
Reference in a new issue