Re: [Boost-bugs] [Boost C++ Libraries] #12243: Boost.Serialization compilation error in Visual Studio with Zc:wchar_t-

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #12243: Boost.Serialization compilation error in Visual Studio with Zc:wchar_t-
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-06-01 15:50:28


#12243: Boost.Serialization compilation error in Visual Studio with Zc:wchar_t-
-------------------------------+-------------------------
  Reporter: anonymous | Owner:
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: None
   Version: Boost 1.61.0 | Severity: Showstopper
Resolution: | Keywords:
-------------------------------+-------------------------

Comment (by anonymous):

 I searched the boost code a bit and came to conclusion that you should use
 {{{
     #ifndef BOOST_NO_CWCHAR
 }}}
 for functions that accept wchar_t literals.

 Otherwise the function '''xml_woarchive_impl::save''' (and similar
 functions) won't work with wchar_t literals in Visual Studio with
 /Zc:wchar_t- .

 The Boost.Serialization compilation error is a side effect of this
 oversight.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12243#comment:1>
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:20 UTC