Constructors/Destructors
Great. (Although I personally don't require anything to be done quickly, since I probably won't be working on anything angelscript related in a week or so. :)
No worries. I found the problem already.
I'll release a new version with the latest changes today, or first thing tomorrow.
I did however discover that GNUC returns objects of type std::string in memory, even though the size is only 4 bytes. This doesn't follow what I had found earlier, which means that I will have to do more research to find out when and why GNUC returns objects in memory. It will probably result in yet another flag for RegisterObjectType().
I'll release a new version with the latest changes today, or first thing tomorrow.
I did however discover that GNUC returns objects of type std::string in memory, even though the size is only 4 bytes. This doesn't follow what I had found earlier, which means that I will have to do more research to find out when and why GNUC returns objects in memory. It will probably result in yet another flag for RegisterObjectType().
void AssignString (std::string &other, std::string *thisPointer)
{
new(thisPointer) std::string (other);
}
Ignoring the comment about how this should return the reference to thisPointer, I am not familiar with this syntax of new. Whats going on here?
J
{
new(thisPointer) std::string (other);
}
Ignoring the comment about how this should return the reference to thisPointer, I am not familiar with this syntax of new. Whats going on here?
J
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement