Re: misc/174549: UINT64_MAX missing in C++ Program

看板FB_bugs作者時間12年前 (2013/04/27 12:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/6 (看更多)
The following reply was made to PR misc/174549; it has been noted by GNATS. From: "b.f." <bf1783@googlemail.com> To: bug-followup@FreeBSD.org, Robin Carey <robin.carey1@googlemail.com> Cc: Subject: Re: misc/174549: UINT64_MAX missing in C++ Program Date: Mon, 24 Dec 2012 09:51:59 +0000 UINT*_MAX and stdint.h are governed by the C99 standard (Section 7.18). A footnote in that that section states that "C++ implementations should define these macros only when __STDC_LIMIT_MACROS is defined before <stdint.h> is included." The system headers in FreeBSD and many other implementations follow this recommendation. If you want to use these macros in C++ code unconditionally, then you should include <cstdint> instead, as described in the C++11 standard ( the cstdint.syn section in Chapter 18). You probably ought to be doing this anyway. b. _______________________________________________ freebsd-bugs@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org"
文章代碼(AID): #1HUrJgBq (FB_bugs)
討論串 (同標題文章)
文章代碼(AID): #1HUrJgBq (FB_bugs)