| 192 | template <typename T, bool convertible = is_convertible<T, int>::value> |
| 193 | struct convertToInt { |
| 194 | static int invoke(const T & /*value*/) { |
| 195 | throw FormatError(); |
| 196 | return 0; |
| 197 | } |
| 198 | }; |
| 199 | // Specialization for convertToInt when conversion is possible |
| 200 | template <typename T> |
nothing calls this directly
no test coverage detected