11 Jul
2017
11 Jul
'17
3:25 p.m.
But countering it, the syntax is unfortunately similar to aggregate initialisation which is probably why std::variant doesn't allow it. I'd be interested if someone from WG21 could tell us actually.
I don't remember variant ever having such constructors proposed, but I may be misremembering.
That's surprising. They're a very obvious thing to propose, not such an obvious thing to reject. Niall -- ned Productions Limited Consulting http://www.nedproductions.biz/ http://ie.linkedin.com/in/nialldouglas/