我有一个建模环境,我正在尝试使用CERTI高级语言架构运行时基础结构进行编译。在[编译过程中,我遇到了几行代码,我不明白,这也会让编译器失误。
RTI_STD::ostream RTI_EXPORT &
operator<<(RTI_STD::ostream &, RTI::Exception *ex)
返回的错误在标题上方。任何帮助将不胜感激。
更多信息:
这是我相信的相关代码:
class RTI_EXPORT RTI
{
public:
#include "baseTypes.hh"
#include "RTItypes.hh"
/**
* RTI (RunTime Infrastructure) Ambassador class.
* The RTIambassador class is the interface used by an
* HLA federate to call the RTI. The RTI may call the
* federate back using the Federate Ambassador class
* @see FederateAmbassador.
*/
class RTI_EXPORT RTIambassador
{
public:
#include "RTIambServices.hh"
RTIambPrivateData *privateData ;
private:
RTIambPrivateRefs* privateRefs ;
};
/**
* Federate Ambassador class.
* The FederateAmbassador is the structure RTI callback class.
* When the RTI needs to contact the federate it calls one
* of the FederateAmbassador class methods.
*/
class RTI_EXPORT FederateAmbassador
{
public:
#include "federateAmbServices.hh"
};
};
RTI_STD::ostream RTI_EXPORT &
operator<<(RTI_STD::ostream &os, RTI::Exception *ex);
RTI_STD::ostream RTI_EXPORT &
operator<<(RTI_STD::ostream &os, RTI::Exception const &ex);
如果您想要整个文件,我可以提供链接。
我认为我的主要问题是我不确定这里使用的&符号是什么?有什么提示吗?