Kaydet (Commit) 364a3d28 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Silence bogus MSC "must return a value" errors.

üst 5d7964a5
......@@ -91,25 +91,39 @@ template< typename T > inline StreamIgnore operator <<(
StreamStart const &, T const &)
{
std::abort();
#if defined _MSC_VER
return StreamIgnore();
#endif
}
template< typename T > inline StreamIgnore operator <<(
StreamString const &, T const &)
{
std::abort();
#if defined _MSC_VER
return StreamIgnore();
#endif
}
template< typename T > inline StreamIgnore operator <<(
StreamIgnore const &, T const &)
{
std::abort();
#if defined _MSC_VER
return StreamIgnore();
#endif
}
template< typename T > typename T::Result getResult(T const &);
inline char const * unwrapStream(StreamString const & s) { return s.string; }
inline char const * unwrapStream(StreamIgnore const &) { std::abort(); }
inline char const * unwrapStream(StreamIgnore const &) {
std::abort();
#if defined _MSC_VER
return 0;
#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