| 240 | |
| 241 | template <typename AwsResult, typename Error> |
| 242 | Result<AwsResult> OutcomeToResult(const std::string& operation, |
| 243 | Aws::Utils::Outcome<AwsResult, Error> outcome) { |
| 244 | if (outcome.IsSuccess()) { |
| 245 | return std::move(outcome).GetResultWithOwnership(); |
| 246 | } else { |
| 247 | return ErrorToStatus(operation, outcome.GetError()); |
| 248 | } |
| 249 | } |
| 250 | |
| 251 | inline Aws::String ToAwsString(const std::string& s) { |
| 252 | // Direct construction of Aws::String from std::string doesn't work because |
no test coverage detected