| 735 | // Catch exceptions that might be thrown by native BOX2D parsing. |
| 736 | template<> |
| 737 | inline StatusWithReason fromString(const std::string& s, BOX2D& bounds) |
| 738 | { |
| 739 | try |
| 740 | { |
| 741 | Utils::IStringStreamClassicLocale iss(s); |
| 742 | iss >> bounds; |
| 743 | } |
| 744 | catch (BOX2D::error& error) |
| 745 | { |
| 746 | std::string msg = "Error parsing '" + s + "': " + error.what(); |
| 747 | return StatusWithReason(-1, msg); |
| 748 | } |
| 749 | return true; |
| 750 | } |
| 751 | |
| 752 | // Catch exceptions that might be thrown by native BOX3D parsing. |
| 753 | template<> |
nothing calls this directly
no test coverage detected