Click here to Skip to main content
15,919,613 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: friend,static,inline,.. recommendation Pin
David Crow2-Nov-05 6:15
David Crow2-Nov-05 6:15 
GeneralRe: friend,static,inline,.. recommendation Pin
ddmcr2-Nov-05 6:44
ddmcr2-Nov-05 6:44 
GeneralRe: friend,static,inline,.. recommendation Pin
toxcct2-Nov-05 6:49
toxcct2-Nov-05 6:49 
GeneralRe: friend,static,inline,.. recommendation Pin
ddmcr2-Nov-05 7:12
ddmcr2-Nov-05 7:12 
GeneralRe: friend,static,inline,.. recommendation Pin
toxcct2-Nov-05 20:43
toxcct2-Nov-05 20:43 
GeneralRe: friend,static,inline,.. recommendation Pin
ddmcr2-Nov-05 21:28
ddmcr2-Nov-05 21:28 
GeneralRe: friend,static,inline,.. recommendation Pin
Maximilien2-Nov-05 7:08
Maximilien2-Nov-05 7:08 
GeneralRe: friend,static,inline,.. recommendation Pin
ddmcr2-Nov-05 7:24
ddmcr2-Nov-05 7:24 
Maximilien wrote:
Imagine that in fact there was a performance gain by using friends or static member functions, we all would have learned sometihng new today.



Maybe you are right , but it is my fault also I could not formulate my question well.I knew what inline functions were for and knew that static and friend methods were not invented for increasing the performance , but I was interested which variant would be the best in this case.
I more expected such answer that "friend or static functions decrease the performance rather than simple class member or inline methods" or smth like that , so I would not use them.
Because using friend functions the user interface of the class was easy to use but if it decreased my performance then i would not use it.
So as I said maybe I should first have tried and then posted
Anyway thanks for your replies Maximilien





"Success is the ability to go from one failure to another with no loss of enthusiasm." - W.Churchill



-- modified at 13:26 Wednesday 2nd November, 2005

AnswerRe: friend,static,inline,.. recommendation Pin
David Crow2-Nov-05 6:19
David Crow2-Nov-05 6:19 
AnswerRe: friend,static,inline,.. recommendation Pin
Kythen2-Nov-05 11:44
Kythen2-Nov-05 11:44 
GeneralOT: floating point library Pin
toxcct2-Nov-05 20:56
toxcct2-Nov-05 20:56 
QuestionRe: OT: floating point library Pin
David Crow3-Nov-05 3:49
David Crow3-Nov-05 3:49 
AnswerRe: OT: floating point library Pin
toxcct3-Nov-05 4:19
toxcct3-Nov-05 4:19 
AnswerRe: OT: floating point library Pin
Kythen3-Nov-05 6:32
Kythen3-Nov-05 6:32 
Questionadding bitmaps to menu items Pin
josip cagalj2-Nov-05 3:29
josip cagalj2-Nov-05 3:29 
AnswerRe: adding bitmaps to menu items Pin
toxcct2-Nov-05 3:41
toxcct2-Nov-05 3:41 
QuestionLoad Font directly from Font-File? Pin
AskQuestion2-Nov-05 2:04
AskQuestion2-Nov-05 2:04 
AnswerRe: Load Font directly from Font-File? Pin
Chris Losinger2-Nov-05 5:21
professionalChris Losinger2-Nov-05 5:21 
AnswerRe: Load Font directly from Font-File? Pin
AskQuestion2-Nov-05 5:53
AskQuestion2-Nov-05 5:53 
GeneralRe: Load Font directly from Font-File? Pin
David Crow2-Nov-05 6:27
David Crow2-Nov-05 6:27 
GeneralRe: Load Font directly from Font-File? Pin
Chris Losinger2-Nov-05 7:21
professionalChris Losinger2-Nov-05 7:21 
GeneralRe: Load Font directly from Font-File? Pin
AskQuestion11-Nov-05 23:39
AskQuestion11-Nov-05 23:39 
Questionexe file Pin
samira forooghi2-Nov-05 0:41
samira forooghi2-Nov-05 0:41 
QuestionRe: exe file Pin
David Crow2-Nov-05 2:40
David Crow2-Nov-05 2:40 
AnswerRe: exe file Pin
Maximilien2-Nov-05 2:42
Maximilien2-Nov-05 2:42 

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.