Commit 19041dad by Jason Merrill

* doc/extend.texi: Mention C++14 library complex suffix.

From-SVN: r255339
parent b3e862e0
...@@ -897,6 +897,10 @@ conforming C library (such as the GNU C Library), and want to construct complex ...@@ -897,6 +897,10 @@ conforming C library (such as the GNU C Library), and want to construct complex
constants of floating type, you should include @code{<complex.h>} and constants of floating type, you should include @code{<complex.h>} and
use the macros @code{I} or @code{_Complex_I} instead. use the macros @code{I} or @code{_Complex_I} instead.
The ISO C++14 library also defines the @samp{i} suffix, so C++14 code
that includes the @samp{<complex>} header cannot use @samp{i} for the
GNU extension. The @samp{j} suffix still has the GNU meaning.
@cindex @code{__real__} keyword @cindex @code{__real__} keyword
@cindex @code{__imag__} keyword @cindex @code{__imag__} keyword
To extract the real part of a complex-valued expression @var{exp}, write To extract the real part of a complex-valued expression @var{exp}, write
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment