| 90 | } |
| 91 | |
| 92 | std::string stringFromAny(const std::any &anyString) |
| 93 | { |
| 94 | if (anyString.type() == typeid(bdn::json)) { |
| 95 | return (std::string)std::any_cast<bdn::json>(anyString); |
| 96 | } else if (anyString.type() == typeid(std::string)) { |
| 97 | return std::any_cast<std::string>(anyString); |
| 98 | } else { |
| 99 | throw std::bad_any_cast(); |
| 100 | } |
| 101 | |
| 102 | return ""; |
| 103 | } |
| 104 | } |
no outgoing calls
no test coverage detected