From patchwork Fri Oct 17 12:34:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 400522 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id C5DC61400A6 for ; Fri, 17 Oct 2014 23:34:37 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=W09D6/vHRB0AlpjkfFOqWIiNq7oUEiC6oIQTx90a2HcJF2nKm4rBR kpQtKRHrAkwYKRj4jlihWNZ0G4bFH8Y+xBvrVFRErkMMAeAgTsGLFIXSOQbWqjcX aX3dF7i0VUn7W4zDn0O6Os1UiZYquV3+KWVe/mOv37aWbmCKnADfS0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; s= default; bh=ym6HCsHpnUVFHcDs0hJKGLX8Nnc=; b=aJ+ylDK7xFDDWDc6PlY5 ef1EKQL0OjB+KPfexl4H7tIvxmbQSE7cHiPiebwr5KUglLSYdALM0+D5ew6OeJgm VAG9SbDW5+b+vWpGue/4nD+bTd6uSGG6gIbQxC2/zgUeHr6hPaR+W2/6OIl5ZORx o+bDQFr4PVECIO2yrAxpRXQ= Received: (qmail 19024 invoked by alias); 17 Oct 2014 12:34:22 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 19007 invoked by uid 89); 17 Oct 2014 12:34:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 17 Oct 2014 12:34:20 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s9HCYJoO002708 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 17 Oct 2014 08:34:19 -0400 Received: from localhost (ovpn-116-121.ams2.redhat.com [10.36.116.121]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s9HCYIS8021596; Fri, 17 Oct 2014 08:34:19 -0400 Date: Fri, 17 Oct 2014 13:34:18 +0100 From: Jonathan Wakely To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [wwwdocs] Add recent C++ changes to gcc-5/changes.html Message-ID: <20141017123418.GX4197@redhat.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) Committed to CVS. ? htdocs/gcc-5/.changes.html.swp Index: htdocs/gcc-5/changes.html =================================================================== RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-5/changes.html,v retrieving revision 1.18 diff -u -r1.18 changes.html --- htdocs/gcc-5/changes.html 15 Oct 2014 11:21:52 -0000 1.18 +++ htdocs/gcc-5/changes.html 17 Oct 2014 12:28:16 -0000 @@ -60,6 +60,31 @@
  • Full support for Cilk Plus has been added to the GCC compiler. Cilk Plus is an extension to the C and C++ languages to support data and task parallelism.
  • +
  • New preprocessor constructs, __has_include + and __has_include_next, to test the availability of headers + have been added.
    + This demonstrates a way to include the header <optional> + only if it is available:
    +
    +#ifdef __has_include
    +#  if __has_include(<optional>)
    +#    include <optional>
    +#    define have_optional 1
    +#  elif __has_include(<experimental/optional>)
    +#    include <experimental/optional>
    +#    define have_optional 1
    +#    define experimental_optional
    +#  else
    +#    define have_optional 0
    +#  endif
    +#endif
    +
    + The header search paths for __has_include_next + and __has_include_next are equivalent to those + of the standard directive #include + and the extension #include_next respectively. +
  • +

    C

    @@ -93,6 +118,10 @@
  • G++ and libstdc++ now implement the feature-testing macros from Feature-testing recommendations for C++.
  • +
  • G++ now allows typename in a template template parameter. +
    +      template<template<typename> typename X> struct D; // OK
    +    
  • Runtime Library (libstdc++)

    @@ -100,11 +129,18 @@
  • Improved support for C++11, including:
      +
    • A new implementation of std::list is enabled by + default, with an O(1) size() function;
    • std::deque meets the allocator-aware container requirements;
    • movable and swappable iostream classes;
    • -
    • support for std::aligned_union;
    • -
    • I/O manipulators std::hexfloat and - std::defaultfloat; +
    • support for std::align and + std::aligned_union;
    • +
    • Type traits std::is_trivially_copyable, + std::is_trivially_constructible, + std::is_trivially_assignable etc.; +
    • +
    • I/O manipulators std::put_time, + std::hexfloat and std::defaultfloat;
  • @@ -128,12 +164,13 @@
    • Class std::experimental::any;
    • Function template std::experimental::apply;
    • +
    • Variable templates for type traits;
  • New random number distributions logistic_distribution and uniform_on_sphere_distribution as extensions.
  • GDB - Xmethods for std::vector and std::unique_ptr;
  • + Xmethods for Sequence Containers and std::unique_ptr;

    Fortran