Click here to Skip to main content
15,671,576 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: can one switch off the implicit inline rule? Pin
David Crow14-Oct-08 3:05
David Crow14-Oct-08 3:05 
AnswerRe: can one switch off the implicit inline rule? Pin
Roger Stoltz14-Oct-08 3:11
Roger Stoltz14-Oct-08 3:11 
GeneralRe: can one switch off the implicit inline rule? Pin
WernerP14-Oct-08 3:47
WernerP14-Oct-08 3:47 
GeneralRe: can one switch off the implicit inline rule? Pin
Roger Stoltz14-Oct-08 4:10
Roger Stoltz14-Oct-08 4:10 
GeneralRe: can one switch off the implicit inline rule? Pin
WernerP14-Oct-08 4:53
WernerP14-Oct-08 4:53 
AnswerRe: can one switch off the implicit inline rule? Pin
Roger Stoltz14-Oct-08 4:59
Roger Stoltz14-Oct-08 4:59 
GeneralRe: can one switch off the implicit inline rule? Pin
WernerP14-Oct-08 5:14
WernerP14-Oct-08 5:14 
GeneralRe: can one switch off the implicit inline rule? [modified] Pin
Rajesh R Subramanian14-Oct-08 5:16
professionalRajesh R Subramanian14-Oct-08 5:16 
WernerP wrote:
The inline keyword, and I think implicit inline too, means, that you don't let the compiler be automatic but try to tell him what to do. This is what I *don't* want and would like to switch off.


Marking something as inline (while you think it would be beneficial) may turn out to be expensive too (well, with certain cases). So, the best way is to let the compiler do the dirty work for you. I am believing that I can never outsmart the compiler on making such a decision.

With the default settings, the compiler won't inline any function automatically.

BTW - Instead of the switch, the #pragma directive would give you greater flexibility on where to impose the restriction, in case you need it.

[Added] BTW - if that is you who has low-voted this post of mine, please do let me know what is that you feel so bad about it. Smile | :)

Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche

.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]

modified on Tuesday, October 14, 2008 11:29 AM

GeneralRe: can one switch off the implicit inline rule? Pin
WernerP14-Oct-08 6:02
WernerP14-Oct-08 6:02 
GeneralRe: can one switch off the implicit inline rule? Pin
Rajesh R Subramanian14-Oct-08 21:01
professionalRajesh R Subramanian14-Oct-08 21:01 
AnswerRe: can one switch off the implicit inline rule? Pin
toxcct14-Oct-08 3:35
toxcct14-Oct-08 3:35 
GeneralRe: can one switch off the implicit inline rule? Pin
CPallini14-Oct-08 3:39
mveCPallini14-Oct-08 3:39 
GeneralRe: can one switch off the implicit inline rule? Pin
WernerP14-Oct-08 4:05
WernerP14-Oct-08 4:05 
GeneralRe: can one switch off the implicit inline rule? Pin
David Crow14-Oct-08 4:23
David Crow14-Oct-08 4:23 
GeneralRe: can one switch off the implicit inline rule? Pin
Roger Stoltz14-Oct-08 4:35
Roger Stoltz14-Oct-08 4:35 
GeneralRe: can one switch off the implicit inline rule? Pin
WernerP14-Oct-08 4:46
WernerP14-Oct-08 4:46 
QuestionFolderDialog open folder/file [modified] Pin
NewVC++14-Oct-08 0:53
NewVC++14-Oct-08 0:53 
AnswerRe: FolderDialog open folder/file Pin
Rajesh R Subramanian14-Oct-08 0:55
professionalRajesh R Subramanian14-Oct-08 0:55 
GeneralRe: FolderDialog open folder/file Pin
NewVC++14-Oct-08 1:11
NewVC++14-Oct-08 1:11 
GeneralRe: FolderDialog open folder/file Pin
Rajesh R Subramanian14-Oct-08 1:16
professionalRajesh R Subramanian14-Oct-08 1:16 
GeneralRe: FolderDialog open folder/file Pin
NewVC++14-Oct-08 1:23
NewVC++14-Oct-08 1:23 
GeneralRe: FolderDialog open folder/file Pin
Rajesh R Subramanian14-Oct-08 1:37
professionalRajesh R Subramanian14-Oct-08 1:37 
GeneralRe: FolderDialog open folder/file Pin
NewVC++14-Oct-08 2:52
NewVC++14-Oct-08 2:52 
GeneralRe: FolderDialog open folder/file Pin
Rajesh R Subramanian14-Oct-08 2:54
professionalRajesh R Subramanian14-Oct-08 2:54 
GeneralRe: FolderDialog open folder/file Pin
NewVC++14-Oct-08 19:00
NewVC++14-Oct-08 19:00 

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.