C++ typeid keyword can be evil

So as I found out not so long ago, different compilers handle this one totally differently ( they provide the names in a different format ), so it’s totally unreliable for cross-platform development.
This is probably in the spec, but I can’t recall reading this in any book I’ve read. It could have saved me lots of hair pulling while trying to find the issue in my code…

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: