lang/cc: change default standard to c++1z

This commit is contained in:
Henrik Lissner 2018-06-04 00:11:13 +02:00
parent b2030c6ed3
commit 7cd97588e6
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -8,7 +8,7 @@ database.")
(defvar +cc-default-compiler-options (defvar +cc-default-compiler-options
`((c-mode . nil) `((c-mode . nil)
(c++-mode (c++-mode
. ,(list "-std=c++11" ; use C++11 by default . ,(list "-std=c++1z" ; use C++17 draft by default
(when IS-MAC (when IS-MAC
;; NOTE beware: you'll get abi-inconsistencies when passing ;; NOTE beware: you'll get abi-inconsistencies when passing
;; std-objects to libraries linked with libstdc++ (e.g. if you ;; std-objects to libraries linked with libstdc++ (e.g. if you