Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Clarification for 7-3-1: extern "C++"
#1
For headers included by other C and C++ headers it is vital to use extern "C++".
But the rule implicitly forbids it by only allowing 3 kind of top level declarations.

Is it really intended to use this as the only compliant way:
Code:
extern "C"
{
  extern "C++"
  {
    namespace MY_API
    {
    }
  }
}
<t></t>
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)