auto_inline - inadequate documentation

Posted by Mick on Stack Overflow See other posts from Stack Overflow or by Mick
Published on 2010-06-17T12:47:54Z Indexed on 2010/06/17 12:53 UTC
Read the original article Hit count: 173

Filed under:
|

I want to disable inlining for a particular function. What the compiler does for everything else should be as specified in the project properties. I found a page on a forum which suggested the following:

#pragma auto_inline(off)
void func()
{
}
#pragma auto_inline()

The author suggested that calling auto_inline() with no arguments will set the compiler to revert to doing whatever the default action was before the call to auto_inline(off). Can anyone confirm that this works for visual studio 2008? I ask because the VS2008 documentation makes no mention at all of what happens if you call this function with no arguments.

© Stack Overflow or respective owner

Related posts about c++

Related posts about visual-studio-2008