Closed hooyuser closed 2 years ago
Support for fold expressions coming soon! In the meantime, this trait works for your use case: https://godbolt.org/z/dab4o8nMK
Thank you for your quick reply. That works for me. Expect to see how folding expressions will work in the future!
Given a specific type, say
int
, how to check whether there exists an integer field at compile time?Or are there some ways to get a tuple of field types? So I can check types like this.