Hi,

I have a class which is derived from osg::Object and it has following set
and get method:-

void setData(const std::vector<DataXY>&);
const std::vector<DataXY>& getData() const;

where DataXY is following structure:-

struct  DataXY
{
      double x;
      double y;
};

After adding following line in the body of REGISTER_OBJECT_WRAPPER

ADD_LIST_SERIALIZER(Data, std::vector<DataXY>);

I am getting following compilation error:-

C:\OpenSceneGraph-3.0.1\include\osgDB/Serializer(715): error C2678: binary
'>>' : no operator found which takes a left-hand operand of type
'osgDB::InputStream' (or there is no acceptable conversion)

Please advise me how to resolve this issue.

Regards,
Mukundan
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to