Skip to content

Using wostringstream only on Windows#21938

Merged
jchen351 merged 22 commits into
mainfrom
Cjian/wostream
Sep 9, 2024
Merged

Using wostringstream only on Windows#21938
jchen351 merged 22 commits into
mainfrom
Cjian/wostream

Conversation

@jchen351
Copy link
Copy Markdown
Contributor

@jchen351 jchen351 commented Aug 30, 2024

Description

Using wostringstream only on Windows

Motivation and Context

From line 62, currently, stream_ can be either wostringstream or ostringstream depending on the OS, however, for Unix like system, stream_ should be ostringstream, instead of.

@fs-eire
Copy link
Copy Markdown
Contributor

fs-eire commented Aug 30, 2024

how about a basic_ostringstream<ORT_TCHAR>?

EDIT: it seems the file already using macro _WIN32 and it does not include header for ORT_TCHAR. may keep the current status

fs-eire
fs-eire previously approved these changes Aug 30, 2024
Comment thread onnxruntime/core/common/logging/sinks/ostream_sink.cc Outdated
Comment thread onnxruntime/test/common/logging/sinks_test.cc Outdated
Comment thread onnxruntime/test/common/logging/sinks_test.cc Outdated
@jchen351 jchen351 merged commit 93c4c9c into main Sep 9, 2024
@jchen351 jchen351 deleted the Cjian/wostream branch September 9, 2024 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants