wide icon indicating copy to clipboard operation
wide copied to clipboard

make ::new usable in a const context to avoid need of using const union hack

Open mcroomp opened this issue 6 months ago • 0 comments

Making new const simplified a bunch of code and allows users of this library to define their own constants without having to do anything hacky.

It does mean that it uses transmute directly, but we know the source and destination types, and alignment isn't an issue since the parameters are by value.

mcroomp avatar Aug 21 '24 08:08 mcroomp