Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
On 17/07/2013 at 04:44, xxxxxxxx wrote:
User Information: Cinema 4D Version: R14 Platform: Language(s) : C++ ;
--------- The hasmap class is pretty cool, but one thing sucks: Its ~::FindOrCreateEntry() method expects c4d_misc::Bool as the second parameter instead of Bool which is why this code fails to compile:
Bool created = FALSE; MapType::Entry* e = map.FindOrCreateEntry(25, created);
While these two snippets work:
c4d_misc::Bool created = FALSE; MapType::Entry* e = map.FindOrCreateEntry(25, created); // or Bool created = FALSE; MapType::Entry* e = map.FindOrCreateEntry(25, (c4d_misc::Bool&) created);