//任意のクラス内での自身の型名とhogeObjectの型名とを比較 ※.name()した方がよかったっけ??
const type_info& this_id = typeid(*this);
const type_info& client_id = typeid(*hogeObject);
//コンソールに出力
cout << bool(this_id == client_id) << endl;
[参考URL]
第50章 型チェック
http://www7b.biglobe.ne.jp/~robe/cpphtml/html03/cpp03050.html
オブジェクトの型を知る
http://wisdom.sakura.ne.jp/programming/cpp/cpp36.html