rttrorg / rttr

C++ Reflection Library
https://www.rttr.org
MIT License
3.11k stars 429 forks source link

Any method to detect the METADATA conflicts? #345

Open ray-linn opened 1 year ago

ray-linn commented 1 year ago

I add two metadata with a conflict key under the same property

        registration::property("value", &g_value)(
            metadata(ASN1_ATTRIBUTE_TAG, ASN1IntegerAttr {.name = "Data" }),
            metadata(ASN1_ATTRIBUTE_TAG, ASN1BooleanAttr {.name = "Flag"})

            );

When running unit test, it looks only 1st metadata is reserved, however, I hope this conflict can be reported at runtime? is there any method to force it throws exceptions instead of ignore the conflict?