Open zmij opened 5 years ago
I got the same issue with a class that derives from a CRTP-based empty base class. (boost::orable
in my case, from boost operators)
I'm just noting it so that CRTP-bases are added as a test, if/when this issue is fixed. (CRTP empty bases are fairly common, I think)
The diagnostic was added in https://github.com/boostorg/pfr/commit/180db174ad5543577e525ca230974a98fac13004#diff-9f25dfaeef0127087c5ed7f25def6deb967c8b1cef9427801f07782652a0044d and https://github.com/boostorg/pfr/commit/ea4c6e85f734b0ed9f4233ba9654b877398fa948#diff-9f25dfaeef0127087c5ed7f25def6deb967c8b1cef9427801f07782652a0044d
Will merge to master after 1.76 release
Provided the following hierarchy of classes:
When trying to use pfr with them there are the following errors (the error messages are somewhat shortened):
Class with an empty base and no members Precise:
Flat:
Class with an empty base and some members Presize:
Flat:
Class with two empty bases and no members Precise:
Flat:
Class with two empty bases and some members Precise:
Flat: