Re: [wwwdocs] Add recent C++ changes to gcc-5/changes.html

2014-10-20 Thread Jonathan Wakely

On 19/10/14 22:19 +0200, Gerald Pfeifer wrote:

On Friday 2014-10-17 13:34, Jonathan Wakely wrote:

Index: htdocs/gcc-5/changes.html
===
@@ -128,12 +164,13 @@
 
Class std::experimental::any; 
Function template std::experimental::apply; 
+ Variable templates for type traits; 

The trailing semi-colon feels a bit odd, doesn't it?

(Also, when using a semi-colon, wouldn't the next word -- Function
and Variable here -- be lower-case?)


Yes, I'll fix these next time I change the file.


Re: [wwwdocs] Add recent C++ changes to gcc-5/changes.html

2014-10-19 Thread Gerald Pfeifer

On Friday 2014-10-17 13:34, Jonathan Wakely wrote:

Index: htdocs/gcc-5/changes.html
===
@@ -128,12 +164,13 @@
  
 Class std::experimental::any; 
 Function template std::experimental::apply; 
+ Variable templates for type traits; 

The trailing semi-colon feels a bit odd, doesn't it?

(Also, when using a semi-colon, wouldn't the next word -- Function
and Variable here -- be lower-case?)

Gerald


[wwwdocs] Add recent C++ changes to gcc-5/changes.html

2014-10-17 Thread Jonathan Wakely

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 -	1.18
+++ htdocs/gcc-5/changes.html	17 Oct 2014 12:28:16 -
@@ -60,6 +60,31 @@
 Full support for https://www.cilkplus.org/";>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 
+only if it is available:
+
+#ifdef __has_include
+#  if __has_include()
+#include 
+#define have_optional 1
+#  elif __has_include()
+#include 
+#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
 http://isocpp.org/std/standing-documents/sd-6-sg10-feature-test-recommendations";>Feature-testing
 recommendations for C++.
+  G++ now allows typename in a template template parameter.
+
+  template typename X> struct D; // OK
+
 
 
   Runtime Library (libstdc++)
@@ -100,11 +129,18 @@
 https://gcc.gnu.org/onlinedocs/libstdc++/manual/status.html#status.iso.2011";>
   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.
 https://sourceware.org/gdb/current/onlinedocs/gdb/Xmethods-In-Python.html";>GDB
-  Xmethods for std::vector and std::unique_ptr;
+  Xmethods for Sequence Containers and std::unique_ptr;
   
 
 Fortran