[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
Sun Nov 24 00:02:17 UTC 2024


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/phobos pull request #9090 "Fix Bugzilla issue 24875" was merged into
master:

- 512e10041b5aef2320df523df73052cfcc27b1c9 by Jonathan M Davis:
  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