C++ Sanity Check

Note to self: wondering how an element got added to your std::map that you didn't actually put there?

std::map<..>[lid] will add an empty element to your list if the lid doesn't currently exist in the table. Awesome.

Also note to self: printing out addresses of objects is done as follows:

obj *my_obj;
printf("address: %p\n", my_obj);

not &my_obj, not printing with %u or %s. Just the above.

Note to the rest of you: I'm going to figure out some way to separate my personal blog and my techy/notes-to-self blog. Apologies for now.

Let me know what you think on Twitter.