Do classes have external linkage?

后端 未结 5 2082
梦谈多话
梦谈多话 2020-12-16 01:00

I have 2 files A.cpp and B.cpp which look something like

A.cpp
----------
class w
{
public:
    w();
};


B.cpp
-----------
class w
{
public:
    w();
};
         


        
5条回答
  •  伪装坚强ぢ
    2020-12-16 01:54

    Classes have no linkage to be pedantic.

    Linkage only applies to symbols, that is, functions and variables, or code and data.

提交回复
热议问题