Hello all! 

I try to generate a custom node core with a GeoVectorProperty field. I followed 
the tutorial "Creating a new container type" and used fcd2code. When compiling 
the lib or the unified app version, I get strange compiler errors:  

error C2440: 'static_cast' : cannot convert from 
'OSG::PointerSFieldCommon<AccessHandlerT,NamespaceI>::value_type' to 
'OSG::GeoVectorProperty *'
1>        with
1>        [
1>            
AccessHandlerT=OSG::ChildAccessHandler<OSG::UnrecordedRefCountPolicy>,
1>            NamespaceI=1
1>        ]
1>        Types pointed to are unrelated; conversion requires reinterpret_cast, 
C-style cast or function-style cast

and 

error C2664: 'OSG::PointerSFieldCommon<AccessHandlerT,NamespaceI>::ptrStoreSet' 
: cannot convert parameter 1 from 'OSG::GeoVectorProperty *const ' to 
'OSG::PointerSFieldCommon<AccessHandlerT,NamespaceI>::const_value'
1>        with
1>        [
1>            
AccessHandlerT=OSG::ChildAccessHandler<OSG::UnrecordedRefCountPolicy>,
1>            NamespaceI=1
1>        ]
1>        Types pointed to are unrelated; conversion requires reinterpret_cast, 
C-style cast or function-style cast

As the error is deep down in the template magic of OpenSG, I tried to narrow 
down the source of the problem by modifying the particles core (see attached 
OSGParticles.fcd) with only one field of type GeoVectorProperty. Using the 
generated sources again results in the same compiler errors. Any ideas? 

Best regards, 
Daniel 

P.S. The same problem exists when using GeoIntegralProperty fields.  
  
-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de

Attachment: OSGParticles.fcd
Description: Binary data

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to