1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

is there any way to inline just some selective calls to a function not all of them?

Discussion in 'C++' started by Garrett2011, Sep 30, 2010.

  1. Garrett2011

    Garrett2011 New Member

    Joined:
    Sep 30, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Is there any way to inline just some selective calls to a particular function not all of them? by function I also mean class operators like assignment operator, constructors like copy constructor. The only form I know is declaring function as such at beginning and that's supposed to effect all calls to that function and it even doesn't work for copy constructor cause that's generated automatically by compiler. After all maybe it'd be good to know basically how much authority for making a function inline or not is there for the programmer under C++ standards.
     

Share This Page