summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
3f27411)
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
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
std::__ostream_insert(os, str.data(), str.size());
#endif
#else
std::__ostream_insert(os, str.data(), str.size());
#endif