mirror of
https://github.com/qicosmos/rest_rpc.git
synced 2026-08-29 16:40:48 +08:00
16 lines
358 B
C++
16 lines
358 B
C++
#pragma once
|
|
#include <tuple>
|
|
|
|
#include "internal/common_macro.hpp"
|
|
|
|
namespace ylt::reflection {
|
|
template <typename T, auto... field>
|
|
struct private_visitor {
|
|
friend inline constexpr auto get_private_ptrs(
|
|
const ylt::reflection::identity<T>&) {
|
|
constexpr auto tp = std::make_tuple(field...);
|
|
return tp;
|
|
}
|
|
};
|
|
} // namespace ylt::reflection
|