From 6b5c92b5e08d8d0765beebbd327f3436db1572bc Mon Sep 17 00:00:00 2001 From: Gennaro Prota Date: Wed, 29 Jul 2026 14:23:03 +0200 Subject: [PATCH] Include unconditionally in wchar_from_mb The iterator uses `std::mbstate_t` and `std::mbsinit` directly, yet the include of `` 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. --- include/boost/archive/iterators/wchar_from_mb.hpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/boost/archive/iterators/wchar_from_mb.hpp b/include/boost/archive/iterators/wchar_from_mb.hpp index 19e1120fc..294351b48 100644 --- a/include/boost/archive/iterators/wchar_from_mb.hpp +++ b/include/boost/archive/iterators/wchar_from_mb.hpp @@ -18,9 +18,7 @@ #include #include // size_t -#ifndef BOOST_NO_CWCHAR #include // mbstate_t -#endif #include // copy #include