Click here to Skip to main content
14,772,794 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Beginning C++ for Windows Application Pin
Gerry Schmitz13-Dec-20 7:19
mveGerry Schmitz13-Dec-20 7:19 
QuestionRe: Beginning C++ for Windows Application Pin
Richard MacCutchan13-Dec-20 7:32
mveRichard MacCutchan13-Dec-20 7:32 
Questioncmath.h compile error Pin
Haakon S.9-Dec-20 22:20
MemberHaakon S.9-Dec-20 22:20 
AnswerRe: cmath.h compile error Pin
CPallini9-Dec-20 22:39
mveCPallini9-Dec-20 22:39 
GeneralRe: cmath.h compile error Pin
Haakon S.10-Dec-20 1:51
MemberHaakon S.10-Dec-20 1:51 
GeneralRe: cmath.h compile error Pin
CPallini10-Dec-20 2:16
mveCPallini10-Dec-20 2:16 
AnswerRe: cmath.h compile error Pin
Greg Utas10-Dec-20 2:04
mvaGreg Utas10-Dec-20 2:04 
GeneralRe: cmath.h compile error Pin
Haakon S.10-Dec-20 2:58
MemberHaakon S.10-Dec-20 2:58 
There are plenty of _Check_return_ statements that work.

If there is something wrong with the calling function, I should get a compile error when compiling the cpp file where the function is called? This is an error from inside the include file cmath.h.

Three errors reported, underscore is the highlighted error indication.

Line 210
_NODISCARD _Check_return_ inline float round(_In_ float _Xx) noexcept /* strengthened */ {
return _CSTD roundf(_Xx);
}
Line 446
_NODISCARD _Check_return_ inline long double round(_In_ long double _Xx) noexcept /* strengthened */ {
return _CSTD roundl(_Xx);
}
Line 663
_GENERIC_MATH1(round)

It seems I am not allowed to alter any include file, so I can not experiment with commenting the functions out, etc.
GeneralRe: cmath.h compile error Pin
Greg Utas10-Dec-20 3:19
mvaGreg Utas10-Dec-20 3:19 
SuggestionRe: cmath.h compile error Pin
David Crow10-Dec-20 3:13
MemberDavid Crow10-Dec-20 3:13 
AnswerRe: cmath.h compile error Pin
Randor 10-Dec-20 3:46
professional Randor 10-Dec-20 3:46 
QuestionRe: cmath.h compile error Pin
Richard MacCutchan10-Dec-20 4:21
mveRichard MacCutchan10-Dec-20 4:21 
AnswerRe: cmath.h compile error Pin
Daniel Pfeffer10-Dec-20 4:53
professionalDaniel Pfeffer10-Dec-20 4:53 
AnswerRe: cmath.h compile error Problem solved Pin
Haakon S.11-Dec-20 5:07
MemberHaakon S.11-Dec-20 5:07 
GeneralRe: cmath.h compile error Problem solved Pin
Randor 11-Dec-20 9:04
professional Randor 11-Dec-20 9:04 
GeneralRe: cmath.h compile error Problem solved Pin
Haakon S.12-Dec-20 0:56
MemberHaakon S.12-Dec-20 0:56 
QuestionC++ class question Pin
pkfox8-Dec-20 7:40
professionalpkfox8-Dec-20 7:40 
AnswerRe: C++ class question Pin
Mircea Neacsu8-Dec-20 7:51
mvaMircea Neacsu8-Dec-20 7:51 
GeneralRe: C++ class question Pin
pkfox8-Dec-20 8:17
professionalpkfox8-Dec-20 8:17 
AnswerRe: C++ class question Pin
Mircea Neacsu8-Dec-20 8:29
mvaMircea Neacsu8-Dec-20 8:29 
QuestionRe: C++ class question Pin
David Crow8-Dec-20 8:06
MemberDavid Crow8-Dec-20 8:06 
AnswerRe: C++ class question Pin
pkfox8-Dec-20 8:16
professionalpkfox8-Dec-20 8:16 
SuggestionRe: C++ class question Pin
David Crow8-Dec-20 8:19
MemberDavid Crow8-Dec-20 8:19 
AnswerRe: C++ class question Pin
Joe Woodbury8-Dec-20 11:00
professionalJoe Woodbury8-Dec-20 11:00 
AnswerRe: C++ class question Pin
CPallini8-Dec-20 22:29
mveCPallini8-Dec-20 22:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.