Talk:cpp/language/contracts
From cppreference.com
[edit] Is it okay now?
When using contracts, I would like not to have an exception, but to have a compilation error in such code:
float f(float x){ if(x>=0) x=-x-1; return sqrt(x); }
When using contracts, I would like not to have an exception, but to have a compilation error in such code:
float f(float x){ if(x>=0) x=-x-1; return sqrt(x); }