-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix null handling for enum types. (#13091)
For enum types we ended up with an incorrect null representation via NumericAttributeTraits, because while we called GetNullValue with the template argument set to our underlying type the actual implementation ignores the template argument: it's just there for the enable_if tests. As far as testing goes, the yaml tests being added would have caught this if our attribute store interaction were actually using enums, but that code switches to treating them as just bare ints very early, before instantiating the NumericAttributeTraits template. The unit test does catch this problem, though.
- Loading branch information
1 parent
d6be342
commit 674073f
Showing
5 changed files
with
3,760 additions
and
2,357 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.