Subject: [Boost-bugs] [Boost C++ Libraries] #12944: wchar_t conflict for common_factor_rt.hpp in visual studio
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-03-30 14:53:11
#12944: wchar_t conflict for common_factor_rt.hpp in visual studio
------------------------------+-------------------------
Reporter: lamar.moore@⦠| Owner: johnmaddock
Type: Support Requests | Status: new
Milestone: To Be Determined | Component: math
Version: Boost 1.63.0 | Severity: Problem
Keywords: |
------------------------------+-------------------------
When attempting to use `common_factor.hpp` I ran into an error where
`gcd_traits<>` had multiple explicit specializations for `unsigned short`.
Upon further inspection I realised the vc runtime defines `wchar_t` as
`typdef unsigned short wchar_t` when the option `-Zc:wchar_t (wchar_t Is
Native Type)` is switched off. I had to patch the `common_factor.hpp`
header in order to use this (since I do not want `wchar_t` to be a built-
in type). Is there any other way around this? Am I misusing this
interface?
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/12944> 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-03-30 14:56:18 UTC