Hi Aron,

Hm. Technically, if an aggregate type contains a non-aggregate member, it's no longer an aggregate, right? I don't have time to look it up in the standard, but maybe it's illegal to use a bracketed initializer list with non-aggregate types? Or maybe just VC7.0 complains? I suspect changing PlyProperty's name field to type const char* wouldn't cause any leaks... Worth a shot at least. An alternative is to use explicit PlyProperty constructor calls.

VC7.0 is pretty ghetto though, any chance you can upgrade? :) I tried to pester Kevin long ago about upgrading the lab -- don't know if he did.

Chad

Aron Bierbaum wrote:
When trying to compile the latest CVS version of OpenSG with MSVC .NET 7.0 I get the following error:

'osg::PlyProperty' has a non-aggregate data member 'osg::PlyProperty::name' : Types with a non-aggregate data member are not aggregate

It seems that there is a limitation in MSVC 7.0 that does not allow an aggregate type to contain a non-aggregate member. You can read more about this limitation at:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndeepc/html/deep07232002.asp

In order to get around this temporarily you can change the definition of

struct PlyProperty {    /* description of a property */
 std::string name;
 ...
};

to

struct PlyProperty {    /* description of a property */
 char* name;
  ...
};

Hope that this helps,
Aron


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to