You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering if it is possible to allow some form of inheritance if fields are not involved. I have the following example code:
// BaseConfig<T> provides a Load and Save functions for easy reusability / pre-processing before calling rfl functionsstructPatchNoteConfig : BaseConfig<PatchNoteConfig>
{
PatchNoteConfig() : BaseConfig("patch_notes.yml", false) {}
std::string url = "http://localhost:8080/notes.md";
bool sortPatchNotes = true;
};
In this example, BaseConfig simply defines some functions for some code reuse, but it contains no fields directly. I assume that this fails due to the std::is_aggregate_v call failing, but I imagine that if read_struct was called, it would probably work? Would it be possible for us to reflect on structs that have no fields and a parameterless constructor?
The text was updated successfully, but these errors were encountered:
Good afternoon.
I was wondering if it is possible to allow some form of inheritance if fields are not involved. I have the following example code:
In this example, BaseConfig simply defines some functions for some code reuse, but it contains no fields directly. I assume that this fails due to the
std::is_aggregate_v
call failing, but I imagine that ifread_struct
was called, it would probably work? Would it be possible for us to reflect on structs that have no fields and a parameterless constructor?The text was updated successfully, but these errors were encountered: