Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
srz-zumix committed Oct 19, 2020
1 parent 6ca0bcc commit aee52fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/gtest/iutest_switch_for_gtest.hpp
Expand Up @@ -558,7 +558,8 @@ inline void GTestStreamTo(std::ostream* os, const char val)
*os << val;
}
#if IUTEST_HAS_CXX_HDR_STRING_VIEW
inline void GTestStreamTo(std::ostream* os, const ::std::string_view& val)
template<typename CharT, typename Traits>
inline void GTestStreamTo(std::ostream* os, const ::std::basic_string_view<CharT, Traits>& val)
{
const ::std::basic_string<CharT, Traits> str{ val };
*os << str.c_str();
Expand Down

0 comments on commit aee52fe

Please sign in to comment.