http://dlang.org/phobos/std_variant.html#.AlgebraicThanks! This is fascinating, really a breath of fresh air coming from the C++ way of doing things.
On Sunday, 15 March 2015 at 23:31:59 UTC, bearophile wrote:
If you are experiencing those problems it's probably the way D/Phobos to tell you to not use basic tuples for your purpose. Use tuples with named fields (or even structs).Take also a look at Algebraic in std.variant. Bye, bearophile