3 ms·
"The rules for conditional operator are quite sophisticated and one of them says that if one of the sub-expressions is a throw expression, the type of the entir
by alexk7 15y ago
"The rules for conditional operator are quite sophisticated and one of them says that if one of the sub-expressions is a throw expression, the type of the entire conditional operator is that of the other sub-expression." [1]
[1] http://akrzemi1.wordpress.com/2011/05/06/compile-time-computations/ http://akrzemi1.wordpress.com/2011/05/06/compile-time-comput...
- hythloday 15y agoThanks for both your and pdw's explanations...the lovely thing about C++ is that there's always something new to learn. ;)