Fix for libc++ (std::basic_ostringstream is not a part of C++ standard). Upstream bug: https://github.com/ROCm/ROCdbgapi/issues/18 --- a/src/os_driver.cpp +++ b/src/os_driver.cpp @@ -1006,12 +1006,12 @@ public: template , int> = 0> void write (const T &v) { - m_stream.write (reinterpret_cast (&v), sizeof (T)); + m_stream.write (reinterpret_cast (&v), sizeof (T)); } void write (const std::vector &v) { - m_stream.write (reinterpret_cast (v.data ()), + m_stream.write (reinterpret_cast (v.data ()), v.size ()); } @@ -1026,7 +1026,7 @@ public: auto str = m_stream.str (); note.size = str.size (); - auto buffer = amd::dbgapi::allocate_memory (note.size); + auto buffer = amd::dbgapi::allocate_memory (note.size); std::copy (str.begin (), str.end (), buffer.get ()); note.data = buffer.release (); @@ -1034,7 +1034,7 @@ public: } private: - std::basic_ostringstream m_stream; + std::basic_ostringstream m_stream; }; }; /* anonymous namespace. */