Commit 1009fdcd authored by Orvid King's avatar Orvid King Committed by facebook-github-bot-1

Handle MSVC in FBString.h

Summary: Specifically, MSVC doesn't define `std::__ostream_insert`, so just write to the stream instead.
Closes #270

Reviewed By: @yfeldblum

Differential Revision: D2283960

Pulled By: @sgolemon
parent 3f274113
...@@ -2370,6 +2370,9 @@ operator<<( ...@@ -2370,6 +2370,9 @@ operator<<(
os.setstate(std::ios_base::badbit | std::ios_base::failbit); os.setstate(std::ios_base::badbit | std::ios_base::failbit);
} }
} }
#elif defined(_MSC_VER)
// MSVC doesn't define __ostream_insert
os.write(str.data(), str.size());
#else #else
std::__ostream_insert(os, str.data(), str.size()); std::__ostream_insert(os, str.data(), str.size());
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment