This page is a snapshot from the LWG issues list, see theLibrary Active Issues List for more information and the meaning ofC++17 status.
<tgmath.h>Section: 17.15[support.c.headers], 99 [depr.ctgmath.syn]Status:C++17Submitter: Thomas KoeppeOpened: 2016-11-29Last modified: 2023-02-07
Priority:0
View all otherissues in [support.c.headers].
View all issues withC++17 status.
Discussion:
The resolution of LWG2536(i) touches on the specification of C headers (of the formfoo.h), but while it fixes the specification ofcomplex.h, it fails to address the specification oftgmath.h.
complex.h,tgmath.h isnot defined by C. Rather,ourtgmath.h behaves like<ctgmath>, which is specified in [ctgmath.syn].Suggested resolution:Amend [depr.c.headers] p3 as follows:3. The header
4. Every other C header […]<complex.h>behaves as if it simply includes the header<ccomplex>.The header<tgmath.h>behaves as if it simply includes the header<ctgmath>.
[2017-01-27 Telecon]
Priority 0
Proposed resolution:
This wording is relative toN4618.
Edit [depr.c.headers] as indicated:
[…]
-2- The use of any of the C++ headers […] is deprecated.-3- The header<complex.h>behaves as if it simply includes the header<ccomplex>.The header<tgmath.h>behaves as if it simply includes the header<ctgmath>.-4- Every other C header, […]