Skip to content

file should be template #195

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
bugdea1er opened this issue Mar 16, 2025 · 0 comments · May be fixed by #158
Open

file should be template #195

bugdea1er opened this issue Mar 16, 2025 · 0 comments · May be fixed by #158

Comments

@bugdea1er
Copy link
Owner

For the same reason that C++ makes all streams templated with a charT parameter, file should become

template<class charT, class traits = std::char_traits<charT>>
class basic_file : public std::basic_iostream<charT, traits>

file must be aliased basic_file<char> and exported from the library to maintain ABI compatibility

@bugdea1er bugdea1er linked a pull request Mar 16, 2025 that will close this issue
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 a pull request may close this issue.

1 participant