From b5555f6ec4607650268086d2b2207287085b90de Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Fri, 2 Aug 2019 17:09:20 +0100 Subject: [PATCH] Update docs on the GNU Q suffix. [CI SKIP] Fixes https://github.com/boostorg/multiprecision/pull/148. --- doc/multiprecision.qbk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/multiprecision.qbk b/doc/multiprecision.qbk index fa017c0ae..ab355cb06 100644 --- a/doc/multiprecision.qbk +++ b/doc/multiprecision.qbk @@ -1029,7 +1029,8 @@ as a valid floating-point number. * When using the Intel compiler, the underlying type defaults to `__float128` if it's available and `_Quad` if not. You can override the default by defining either `BOOST_MP_USE_FLOAT128` or `BOOST_MP_USE_QUAD`. * When the underlying type is Intel's `_Quad` type, the code must be compiled with the compiler option `-Qoption,cpp,--extended_float_type`. -* When compiling with `gcc`, you need to use the flag `--std=gnu++11/14/17`, as the numeric literal operator 'operator""Q' is a GNU extension. Compilation fails with the flag `--std=c++11/14/17`. +* When compiling with `gcc`, you need to use the flag `--std=gnu++11/14/17`, as the suffix 'Q' is a GNU extension. Compilation fails with the flag `--std=c++11/14/17` +unless you also use `-fext-numeric-literals`. [h5 float128 example:]