HI,
I defined two stuctures in TB.ice:
And then,I make two function class in STL_Compares.h:Code:struct IHisDataKey { .......................... }; struct IHisDataValue { ........................... };
Code:class CstlKey { public: bool operator()(const IHisDataKey& k1,const IHisDataKey& k2) const { ................................ } }; class CstlValue { public: bool operator()(const IHisDataValue& v1,const IHisDataValue& v2) const { ................................ } };
When I use slice2cpp.exe:
I always get "slice2freeze.exe: `IHisDataValue' is not a valid index type" error.slice2freeze.exe -I. -ID:\Ice-3.3.0-VC60\slice --add-header STL_Compares.h --dict IMapHisData,IHisDataKey,IHisDataValue,sort,CstlKey --dict-index IMapHisData,sort,CstlValue MapHisData TB.ice
What is the reason?

Reply With Quote
