条件编译(constexpr if)和“ISO C++禁止零大小数组”如果你需要std::conditional的等价物,但是是值,而不是类型,你可以这样做:if constexpr(至少,您是如何使用它的)不能直接解决这个错误,因为它是一个格式错误的类定义。您是否示例化这个类是无关紧要的。您可以通过使用std::max确保数组大小不为零来解决这个问题:
Towards zero radiation isocentre size: minimising radiation beam isocentricity on Elekta linear accelerators by means of optimising look-up tablesRadiation isocentreBeam isocentricityWL testLook-up tableThe most important geometric characteristics of SRS/SBRT treatments are precise target localisation and ...