I have found many posts about this error but I could find how to overcome it. This is the code where the error is triggered:
void main(){
float f{1.3};
}
Why in the initialize-list no casting happened like any other variable? For example, this works smoothly:
float f = 1.3;
This is maybe a bug or something. Use this instead:
float f;
f=1.3;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With