0

How can I prove that inline functions iin class default to internal linkage?

In other words/:

How can I display output of internal linkage to console?

EDIT: unix platform

  • It seems to me you might misunderstand what internal linkage is: http://stackoverflow.com/questions/1358400/what-is-external-linkage-and-internal-linkage-in-c – Zac Howland Feb 10 '11 at 13:41
  • 2
    Just for your information, 7.1.2/3 footnote says _The inline keyword has no effect on the linkage of a function_. So, I think inline functions aren't defaulted to internal linkage particularly. – Ise Wisteria Feb 10 '11 at 14:46
  • 3
    You can't because they don't. http://stackoverflow.com/questions/3540931/ – CB Bailey Feb 12 '11 at 10:05
  • @Charles: This should be an answer - it's spot on. – Björn Pollex Mar 07 '11 at 12:39

1 Answers1

-2

Here is an FAQ about inline functions http://www.parashift.com/c++-faq-lite/inline-functions.html.

Marius Bancila
  • 16,053
  • 9
  • 49
  • 91
  • Posting a link is not an answer to the question, even if it is relevant. If you have the answer it's better to write it directly down – CharlesB Mar 07 '11 at 12:35
  • I thought the very point of a Frequently Asked Question is to answer that once so you don't have to give the same answer again and again. – Marius Bancila Mar 07 '11 at 12:41
  • The linked FAQ fails to mention linkage, which makes this discussion moot. -1 – MSalters Mar 07 '11 at 12:45
  • No, they don't. It's about inline functions. It explains what inline functions are, which should clarify that there is no connection between inline functions and internal linkage. – Marius Bancila Mar 07 '11 at 13:13