top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Defining a function virtual inline vs inline in C++

+2 votes
325 views

I would like to know, if there is any difference (in allocated memory space) between defining a function inline in the class declaration (with the inline word), and defining a function inline explicit after the class declaration.

posted Nov 4, 2013 by Salil Agrawal

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button
There is no difference.

1 Answer

0 votes

i think there is no difference

answer Nov 5, 2013 by As M Ob
Similar Questions
+1 vote

1)I have an inline function with recursion, when i compiled it i am not seeing any Error/Warning for that why?
2)As far as i know its compiler dependent whether to copy inline function or not, but my question is how we will get to know whether compiler has added inline function or not?
3)In What stage of compilation Inline function will be copied?

...