Only at compile time. Since the failure to allocate memory doesn't happen until runtime, you can't detect and report the failure at compile time.
1 Like
Only at compile time. Since the failure to allocate memory doesn't happen until runtime, you can't detect and report the failure at compile time.