Skip to content

Include <cwchar> unconditionally in wchar_from_mb - #359

Open
gennaroprota wants to merge 1 commit into
developfrom
fix/wchar-from-mb-requires-cwchar
Open

Include <cwchar> unconditionally in wchar_from_mb#359
gennaroprota wants to merge 1 commit into
developfrom
fix/wchar-from-mb-requires-cwchar

Conversation

@gennaroprota

Copy link
Copy Markdown
Collaborator

The iterator uses std::mbstate_t and std::mbsinit directly, yet the include of <cwchar> was guarded by BOOST_NO_CWCHAR. That guard was misleading: when BOOST_NO_CWCHAR was defined the header was skipped but the code below still used those symbols, so the file could not compile in that configuration anyway. Therefore, include the header unconditionally.

Closes #196.

The iterator uses `std::mbstate_t` and `std::mbsinit` directly, yet the
include of `<cwchar>` was guarded by `BOOST_NO_CWCHAR`. That guard was
misleading: when `BOOST_NO_CWCHAR` was defined the header was skipped
but the code below still used those symbols, so the file could not
compile in that configuration anyway. Therefore, include the header
unconditionally.

Closes #196.
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.

Using functionality in wchar_from_mb.hpp

1 participant