Re: [Boost-bugs] [Boost C++ Libraries] #9910: is_convertible doesn't compile with inaccessible copy constructor

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9910: is_convertible doesn't compile with inaccessible copy constructor
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-04-26 16:26:03


#9910: is_convertible doesn't compile with inaccessible copy constructor
------------------------------------+----------------------------
  Reporter: Matei David <matei@…> | Owner: johnmaddock
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: type_traits
   Version: Boost 1.55.0 | Severity: Problem
Resolution: fixed | Keywords: is_convertible
------------------------------------+----------------------------

Comment (by michel):

 Hi John,

 The use of `is_abstract<To>` in
 `boost::detail::is_convertible_impl_dispatch_base` disallows
 `To` to be an array of incomplete types. For example,
 {{{
 struct incomplete;
 bool b = is_convertible<int, incomplete[]>::value;
 }}}
 produces a compilation error, but this code is fine in C++11.

 Michel

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9910#comment:2>
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:16 UTC