This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: C++: "unqualified" linkage


> PS: Why didn't the C++ standard include this?

From the point of the C standard, there is only one version of
<foo.h>, which is defined as

#include <cfoo>
using std::foo_struct1;
using std::foo_struct2;

etc, so there is no need to deal with a different copy of <foo.h>
which has

struct foo_struct1{
  /* contents */
};

etc. How C and C++ integrate on the system header and library
interface, is really an implementation issue.

Regards,
Martin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]