Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions stl/inc/streambuf
Original file line number Diff line number Diff line change
Expand Up @@ -357,12 +357,12 @@ protected:
virtual pos_type __CLR_OR_THIS_CALL seekoff(
off_type, ios_base::seekdir, ios_base::openmode = ios_base::in | ios_base::out) {
// change position by offset, according to way and mode
return streampos(-1);
return pos_type(off_type(-1));
}

virtual pos_type __CLR_OR_THIS_CALL seekpos(pos_type, ios_base::openmode = ios_base::in | ios_base::out) {
// change to specified position, according to mode
return streampos(-1);
return pos_type(off_type(-1));
}

virtual basic_streambuf* __CLR_OR_THIS_CALL setbuf(_Elem*, streamsize) {
Expand Down
1 change: 1 addition & 0 deletions tests/std/test.lst
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ tests\GH_001850_clog_tied_to_cout
tests\GH_001914_cached_position
tests\GH_002039_byte_is_not_trivially_swappable
tests\GH_002058_debug_iterator_race
tests\GH_002120_streambuf_seekpos_and_seekoff
tests\LWG2597_complex_branch_cut
tests\LWG3018_shared_ptr_function
tests\P0019R8_atomic_ref
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright (c) Microsoft Corporation.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

RUNALL_INCLUDE ..\usual_matrix.lst
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Copyright (c) Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include <streambuf>
#include <string>

using namespace std;

struct State {};

struct CharTraits : char_traits<char> {
using state_type = State;
using pos_type = fpos<State>;
};

struct Streambuf : basic_streambuf<char, CharTraits> {};

int main() {} // COMPILE-ONLY