Subject: [Boost-bugs] [Boost C++ Libraries] #6623: Build fails in MSVC 2010 with 'isspace' : is not a member of 'std'
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-02-27 16:05:18
#6623: Build fails in MSVC 2010 with 'isspace' : is not a member of 'std'
-----------------------+----------------------------------------------------
Reporter: anonymous | Type: Bugs
Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.48.0
Severity: Problem | Keywords:
-----------------------+----------------------------------------------------
Build fails in MSVC 2010 with:
C:\include\boost\spirit\home\support\char_encoding\standard.hpp(98) :
error C2039: 'isspace' : is not a member of 'std'
If #include <locale> is added after #include <cctype> then the following
error occurs:
c:\include\boost\spirit\home\support\char_encoding\standard.hpp(99) :
error C2780: 'bool std::isspace(_Elem,const std::locale &)' : expects 2
arguments - 1 provided
So there is a locale specific version. However, it appears that there
should be a non-locale specific version, especially since no other std
function referenced from <cctype> seems to have a problem:
http://msdn.microsoft.com/en-us/library/f9xkk9fk.aspx
replacing line 98 with:
return ::isspace(ch);
allows it to compile, but I don't know where it is pulling the function
from.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6623> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:09 UTC