
1 Feb
2018
1 Feb
'18
1:06 a.m.
2018-01-31 21:02 GMT-03:00 Andrey Semashev via Boost
It's not the exceptions that made variant difficult. It's *the possibility of a failure* at certain points in some cases. You would have the same difficulty defining behavior in these cases with any error reporting mechanism, exceptions or not.
The way the language features interact makes this hard. It'd be much simpler if move constructors were forbidden to throw (I'm **not** saying this would be a good rule to have in the language). Yet you can write buggy code like the one Andrzej Krzemienski mentioned not long ago. -- VinÃcius dos Santos Oliveira https://vinipsmaker.github.io/