Gerrit Voss wrote:
and it was to fast on my side, I just did some off line checks and they
all worked. Using the actual OpenSG compiler or whatever settings did
break even the simple examples that worked offline, so much to theory
and real life in a Microsoft world ;-((((.
Looks like it is time that I have a closer look at this c***** thing
again ;-).
Right now I'm running into an issue where some code in MField wants to
do this:
vector<bool> v;
// ...
copyToBin(..., &(v[0]), ...);
It won't compile because vector<bool> is (unfortunately) specialized and
you can't just get a bool& reference to a bit in the vec. Even worse,
you can't treat &(v[0]) as a pointer to the first bool, since the
internal storage is packed. Commenting out
OSG_DLLEXPORT_MFIELD_DEF2(bool , 2, OSG_BASE_DLLTMPLMAPPING);
in OSGTypeInst.cpp seemed to fix the immediate problem, but I have no
idea if that's actually used elsewhere.
Both VC7.1 and gcc 3.3.1 won't compile the following test program:
#include <vector>
int main() {
std::vector<bool> v(1);
bool& b = v[0];
}
VC6 and VC7.0 compile it fine.
Cheers,
Chad
-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community? Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users