http://d.puremagic.com/issues/show_bug.cgi?id=10907
Summary: It is impossible to pack a structure with shared
object into a tuple.
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Jack Applegame <[email protected]> 2013-08-26 16:13:18
PDT ---
Example:
import std.typecons;
class Foo {}
struct A {
shared Foo foo;
}
void main() {
auto a = tuple(new shared Foo); // ОК
auto b = tuple(A()); // Error: static assert "unable" to format shared
objects"
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------