Menu

compilation error msvs 2008 with /Zc:wchar_t-

sliser
2013-03-06
2013-06-03
  • sliser

    sliser - 2013-03-06

    Hello!

    I can't compile log library rev.842 with /Zc:wchar_t- specified which make compiler treat wchar_t as unsigned short. A problem is caused by error in template specialization inside boost::spirit and can be easy reprodused.

    using namespace std;
    using namespace boost::spirit;
    int main(int argc, char **argv)
    {
        wstring string_;
        qi::parse(string_.begin(), string_.end(), 
            qi::lit(L'.'));
        return 0;
    }
    

    Maybe, it makes sense to substitute qi::lit with qi::char?

    With best regards, sliser

     
  • Andrey Semashev

    Andrey Semashev - 2013-03-06

    I don't think I'm going to support such configuration. wchar_t is a distinct type, and AFAIR, Boost.Build makes sure it is treated as such when the library is compiled.

     

Log in to post a comment.