g++ doesn't compile constexpr function with assert in it

后端 未结 4 1761
梦如初夏
梦如初夏 2020-12-15 01:33
template constexpr inline 
T getClamped(const T& mValue, const T& mMin, const T& mMax) 
{ 
     assert(mMin < mMax); // remove this          


        
4条回答
提交回复
热议问题