bigint
bigint copied to clipboard
Not correct string number
Bigint a("m");
The following code gives a loop.
"m" isnt a valid argument. What output do you expect?
Can either:
- Throw
- Cast to 0
I'm leaning mostly towards (1)
Exception, not a loop.
Throwing makes the most sense, or in the case that -fno-exceptions is on, then std::abort() and document that invalid input is simply not tolerated.