using c++ cast (wip)

This commit is contained in:
ValKmjolnir
2023-09-14 00:34:31 +08:00
parent c157d8a9b1
commit 36a2aa67ef
6 changed files with 30 additions and 16 deletions

View File

@@ -154,7 +154,8 @@ void nas_co::clear() {
}
std::ostream& operator<<(std::ostream& out, const nas_co& co) {
out << "<coroutine at 0x" << std::hex << u64(&co) << std::dec << ">";
out << "<coroutine at 0x" << std::hex;
out << reinterpret_cast<u64>(&co) << std::dec << ">";
return out;
}