Skip to content
  1. Jan 29, 2011
  2. Jan 28, 2011
  3. Jan 25, 2011
    • Howard Hinnant's avatar
      placeholder test · 389eb9b5
      Howard Hinnant authored
      llvm-svn: 124193
      389eb9b5
    • Douglas Gregor's avatar
      Eliminate the C++0x-only is_convertible testing function that accepts · a7b22414
      Douglas Gregor authored
      a cv-qualifier rvalue reference to the type, e.g.,
      
        template <class _Tp> char  __test(const volatile typename remove_reference<_Tp>::type&&);
      
      The use of this function signature rather than the more
      straightforward one used in C++98/03 mode, e.g.,
      
        template <class _Tp> char  __test(_Tp);
      
      is broken in two ways:
      
        1) An rvalue reference cannot bind to lvalues, so is_convertible<X&,
        X&>::value would be false. This breaks two of the unique_ptr tests
        on Clang and GCC >= 4.5. Prior GCC's seem to have allowed rvalue
        references to bind to lvalues, allowing this bug to slip in.
      
        2) By adding cv-qualifiers to the type we're converting to, we get
        some incorrect "true" results for, e.g., is_convertible<const X&, X&>::value.
      
      llvm-svn: 124166
      a7b22414
  4. Jan 23, 2011
  5. Dec 11, 2010
  6. Dec 10, 2010
  7. Dec 08, 2010
  8. Dec 07, 2010
  9. Dec 02, 2010
  10. Nov 30, 2010
  11. Nov 23, 2010
  12. Nov 20, 2010
  13. Nov 19, 2010
  14. Nov 18, 2010
  15. Nov 17, 2010
  16. Nov 16, 2010
Loading