[Issue 24875] std.traits.isAggregateType does not consider enums of aggregate types to be aggregate types

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Nov 23 12:38:51 UTC 2024


https://issues.dlang.org/show_bug.cgi?id=24875

Dlang Bot <dlang-bot at dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #1 from Dlang Bot <dlang-bot at dlang.rocks> ---
@jmdavis created dlang/phobos pull request #9090 "Fix Bugzilla issue 24875"
fixing this issue:

- Fix Bugzilla issue 24875

  This makes it so that enums whose base type is an aggregate type are
  also considered an aggregate type. It probably doesn't affect much code,
  since isAggregateType isn't needed often, and it's fairly rare to
  declare enums whose base type is an aggregate type, but in general, code
  that cares whether a type is an aggregate type is going to care that an
  enum's base type is an aggregate type.

https://github.com/dlang/phobos/pull/9090

--


More information about the Digitalmars-d-bugs mailing list