我有一个建模环境,我正在尝试使用 CERTI Higher Language Architecture Run Time Infrastructure 进行编译。[在编译过程中遇到了几行看不懂的代码,这也让编译器不爽,抛出错误。
RTI_STD::ostream RTI_EXPORT &
operator<<(RTI_STD::ostream &, RTI::Exception *ex)
返回的错误在标题上方。任何帮助,将不胜感激。
编辑 1
更多信息:
这是我相信的相关代码:
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);
如果您想要整个文件,我可以提供一个链接。
我认为,我的主要问题是我不确定这里是如何使用 & 符号的?有小费吗?