- Notifications
You must be signed in to change notification settings - Fork5
Commit4f9e330
committed
Return NULL instead of throwing error when desired bound is not available.
Change range_lower and range_upper to return NULL rather than throwing anerror when the input range is empty or the relevant bound is infinite. Perdiscussion, throwing an error seems likely to be unduly hard to work with.Also, this is more consistent with the behavior of the constructors, whichtreat NULL as meaning an infinite bound.1 parent851c83f commit4f9e330
2 files changed
+14
-16
lines changedLines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10745 | 10745 |
| |
10746 | 10746 |
| |
10747 | 10747 |
| |
| 10748 | + | |
| 10749 | + | |
| 10750 | + | |
| 10751 | + | |
| 10752 | + | |
| 10753 | + | |
| 10754 | + | |
| 10755 | + | |
10748 | 10756 |
| |
10749 | 10757 |
| |
10750 | 10758 |
| |
|
Lines changed: 6 additions & 16 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
456 | 456 |
| |
457 | 457 |
| |
458 | 458 |
| |
459 |
| - | |
460 |
| - | |
461 |
| - | |
462 |
| - | |
463 |
| - | |
464 |
| - | |
465 |
| - | |
466 |
| - | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
467 | 462 |
| |
468 | 463 |
| |
469 | 464 |
| |
| |||
478 | 473 |
| |
479 | 474 |
| |
480 | 475 |
| |
481 |
| - | |
482 |
| - | |
483 |
| - | |
484 |
| - | |
485 |
| - | |
486 |
| - | |
487 |
| - | |
488 |
| - | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
489 | 479 |
| |
490 | 480 |
| |
491 | 481 |
| |
|
0 commit comments
Comments
(0)