【发布时间】:2012-08-02 10:52:28
【问题描述】:
我有一个头文件定义了一些我想在我的代码中使用的结构。
public value struct HttpHeader
{
Platform::String^ mName;
Platform::String^ mValue;
};
typedef Platform::Collections::Vector<HttpHeader> HttpHeaders;
public value struct HttpRequestEvent
{
Platform::String^ mUri;
HttpHeaders^ mHeaders;
};
当我构建这个时,我得到了这个错误:
error C3986: 'mHeaders': signature of public member contains native type 'std::equal_to<_Ty>'
with
[
_Ty=cpcpb::HttpHeader
] (SettingsServiceImpl.cpp)
我在这里缺少什么?我不都是用 C++/Cx 吗?
【问题讨论】: