Changeset f4a42661 in mainline for uspace/lib/cpp/src/future.cpp
- Timestamp:
- 2023-10-22T14:04:49Z (18 months ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 590cb6d2
- Parents:
- b2cbc0b (diff), c63c2bb (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/src/future.cpp
rb2cbc0b rf4a42661 84 84 const char* future_error::what() const noexcept 85 85 { 86 return code().message().c_str(); 86 /* 87 * FIXME 88 * Following code would be optimal but the message string is 89 * actually destroyed before the function returns so we would 90 * be returning a dangling pointer. No simple fix available, hence 91 * we use the ugly hack. 92 */ 93 //return code().message().c_str(); 94 #define QUOTE_ARG(arg) #arg 95 return "future_error, see " __FILE__ ":" QUOTE_ARG(__LINE__); 87 96 } 88 97 }
Note:
See TracChangeset
for help on using the changeset viewer.