mirror of
https://github.com/BlackMATov/meta.hpp.git
synced 2026-01-04 17:21:07 +07:00
public info merge functions
This commit is contained in:
@@ -165,17 +165,16 @@ namespace meta_hpp
|
||||
std::optional<data_info> get_data(std::string_view id) const {
|
||||
return detail::find_opt(datas_, id);
|
||||
}
|
||||
private:
|
||||
friend class class_info;
|
||||
template < typename Class > friend class class_;
|
||||
template < auto Method > friend class method_;
|
||||
private:
|
||||
void merge_with_(const method_info& other) {
|
||||
|
||||
void merge(const method_info& other) {
|
||||
if ( fid() != other.fid() ) {
|
||||
throw std::logic_error("method_info::merge failed");
|
||||
}
|
||||
detail::merge_with(datas_, other.datas_, &data_info::merge_with_);
|
||||
detail::merge_with(datas_, other.datas_, &data_info::merge);
|
||||
}
|
||||
private:
|
||||
template < auto Method >
|
||||
friend class method_;
|
||||
private:
|
||||
family_id fid_;
|
||||
std::string id_;
|
||||
|
||||
Reference in New Issue
Block a user