Skip to content

Commit 3839196

Browse files
committed
Fix test issues under /permissive-
1 parent 8144234 commit 3839196

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Release/include/cpprest/streams.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,8 @@ namespace Concurrency { namespace streams
577577
/// The data type of the basic element of the stream.
578578
/// </typeparam>
579579
/// <param name="buffer">A stream buffer.</param>
580-
basic_istream(streams::streambuf<CharType> buffer) : m_helper(std::make_shared<details::basic_istream_helper<CharType>>(buffer))
580+
template<class AlterCharType>
581+
basic_istream(streams::streambuf<AlterCharType> buffer) : m_helper(std::make_shared<details::basic_istream_helper<CharType>>(std::move(buffer)))
581582
{
582583
_verify_and_throw(details::_in_streambuf_msg);
583584
}

Release/tests/functional/websockets/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@ if (NOT CPPREST_EXCLUDE_WEBSOCKETS)
3131
if(NOT TEST_LIBRARY_TARGET_TYPE STREQUAL "OBJECT")
3232
target_link_libraries(websocketsclient_test PRIVATE websockettest_utilities)
3333
endif()
34+
target_include_directories(websocketsclient_test PRIVATE utilities)
3435
endif()

0 commit comments

Comments
 (0)