std.socket.Address not allowed in tuples

Steven O oliver.steven at gmail.com
Wed Jan 23 15:56:15 UTC 2019


Can anyone please explain to me what's going on here?


import std.container;
import std.socket;
import std.typecons;

void main()
{
     /* Doesn't work
     alias Rec_type = Tuple!(Address, "x", int, "y", int, "z");
     RedBlackTree!Rec_type[] records;
     */

     // Works
     alias Rec_type = Tuple!(int, "y", int, "z");
     RedBlackTree!Rec_type[] records;
}


Why am I not allowed to put Address types in tuples?


More information about the Digitalmars-d-learn mailing list