[committed] cxx-status: Update -std= instructions for C++20.

Message ID 20200221173256.185786-1-polacek@redhat.com
State New
Headers show
Series
  • [committed] cxx-status: Update -std= instructions for C++20.
Related show

Commit Message

Marek Polacek Feb. 21, 2020, 5:32 p.m.
We merged support for -std=c++20 to trunk, so -std=c++2a is only
needed in GCC 9 and earlier.
---
 htdocs/projects/cxx-status.html | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


base-commit: b2543147f043404eb90ebefa744d210fa7ca6566
-- 
Marek Polacek • Red Hat, Inc. • 300 A St, Boston, MA

Patch

diff --git a/htdocs/projects/cxx-status.html b/htdocs/projects/cxx-status.html
index 1b54ea97..47278613 100644
--- a/htdocs/projects/cxx-status.html
+++ b/htdocs/projects/cxx-status.html
@@ -37,7 +37,8 @@ 
   standard, which is expected to be published in 2020.</p>
 
   <p>C++2a features are available since GCC 8. To enable C++2a
-      support, add the command-line parameter <code>-std=c++2a</code>
+      support, add the command-line parameter <code>-std=c++20</code>
+      (use <code>-std=c++2a</code> in GCC 9 and earlier)
       to your <code>g++</code> command line. Or, to enable GNU
       extensions in addition to C++2a features,
     add <code>-std=gnu++2a</code>.</p>