Re: [Boost-bugs] [Boost C++ Libraries] #11835: boost::has_trivial_copy is incorrect on Clang

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11835: boost::has_trivial_copy is incorrect on Clang
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-12-09 18:15:03


#11835: boost::has_trivial_copy is incorrect on Clang
-------------------------+-------------------------------------------------
  Reporter: | Owner: johnmaddock
  joseph.thomson@… | Status: new
      Type: Bugs | Component: type_traits
 Milestone: To Be | Severity: Problem
  Determined | Keywords: has_trivial_copy clang memcpy
   Version: Boost | is_trivially_copyable
  1.59.0 |
Resolution: |
-------------------------+-------------------------------------------------

Comment (by johnmaddock):

 Hold on a second - type T in your example is not IMO trivially copyable
 (because it's not copyable at all). I realise some interpretations of the
 std will result in std::has_trivial_copy returning true for this type, but
 that seems to be bonkers to me. It has always been (deliberate)
 Boost.TypeTraits behaviour for such types to be non-trivial.

 What am I missing?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11835#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:19 UTC