! * \brief Converts the specified C-string to a std::string. Takes care of freeing \a str. */
| 64 | * \brief Converts the specified C-string to a std::string. Takes care of freeing \a str. |
| 65 | */ |
| 66 | inline string stdstr(char *str) |
| 67 | { |
| 68 | const string copy(str); |
| 69 | free(reinterpret_cast<void *>(str)); |
| 70 | return copy; |
| 71 | } |
| 72 | |
| 73 | /*! |
| 74 | * \brief Converts the specified "GoString" to a std::string. |
no outgoing calls
no test coverage detected