Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5271: is_convertible with 16-byte aligned types causes errors on MSVC
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-03-07 13:51:22
#5271: is_convertible with 16-byte aligned types causes errors on MSVC
--------------------------------------+-------------------------------------
Reporter: mgaunard | Owner: johnmaddock
Type: Bugs | Status: new
Milestone: To Be Determined | Component: type_traits
Version: Boost Development Trunk | Severity: Problem
Resolution: | Keywords: is_convertible msvc alignment
--------------------------------------+-------------------------------------
Comment (by mgaunard):
It doesn't really seem fixable within the field of portable C++03, so I
see three solutions:
- use std::is_convertible or std::tr1::is_convertible if either is
available
- use the `__is_convertible_to` built-in on MSVC (available since 7.1)
- use SFINAE extended to expressions, if available, to implement this
trait without passing by value to a function
Solution number 2 seems to be the easiest one for a quick fix, and the one
most MSVC versions will be able to benefit from.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5271#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:05 UTC