Defrenciate between friend function and inline function in c++
Answers
Answered by
2
There's no difference. Both friend and inline are independent declaration specifiers, which can be specified in any order. There's not much point in declaring the function inline in a friend declaration though. More generally, there's no point in specifying inline in any non-defining function declaration.
Similar questions