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

Stanislav Blinov <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #2 from Stanislav Blinov <[email protected]> ---
There are isCopyable and isAssignable traits in std.traits.
Or you can roll your own:

enum bool isCopyable(T) = is(typeof(() { T* a, b; *a = *b; }));

using pointers in case e.g. the default ctor is disabled.

--

Reply via email to