Skip to content

Commit 1412c2e

Browse files
committed
Fixing up further GCC warnings/errors.
1 parent 93ee7c3 commit 1412c2e

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

Release/include/cpprest/streams.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,11 @@ namespace Concurrency { namespace streams
879879
if (ch == concurrency::streams::char_traits<CharType>::eof()) return pplx::task_from_result(false);
880880
if (ch == '\n')
881881
{
882-
return buffer.bumpc().then([](typename concurrency::streams::char_traits<CharType>::int_type) { return false; });
882+
return buffer.bumpc().then([](
883+
#ifndef _MS_WINDOWS // Required by GCC
884+
typename
885+
#endif
886+
concurrency::streams::char_traits<CharType>::int_type) { return false; });
883887
}
884888

885889
return pplx::task_from_result(false);

Release/tests/functional/http/client/response_stream_tests.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,10 @@ class basic_throws_buffer : public streams::details::streambuf_state_manager<Cha
258258
public:
259259
basic_throws_buffer() : streams::details::streambuf_state_manager<CharType>(std::ios_base::out) {}
260260

261+
typedef typename streams::details::basic_streambuf<CharType>::int_type int_type;
262+
typedef typename streams::details::basic_streambuf<CharType>::pos_type pos_type;
263+
typedef typename streams::details::basic_streambuf<CharType>::off_type off_type;
264+
261265
bool can_seek() const override { return true; }
262266
bool has_size() const override { return false; }
263267
size_t buffer_size(std::ios_base::openmode) const override { return 0; }
@@ -294,7 +298,7 @@ template<typename CharType>
294298
class close_throws_buffer : public streams::streambuf<CharType>
295299
{
296300
public:
297-
close_throws_buffer() : streambuf<CharType>(std::shared_ptr<basic_throws_buffer<CharType>>(new basic_throws_buffer<CharType>())) {}
301+
close_throws_buffer() : streams::streambuf<CharType>(std::shared_ptr<basic_throws_buffer<CharType>>(new basic_throws_buffer<CharType>())) {}
298302
};
299303

300304
// Tests if an exception occurs and close throws an exception that the close

0 commit comments

Comments
 (0)