c++ how to obtain the type of the object?
<p>how can i obtain the <code>typeid</code> of the following: <code>T&amp; object</code>; where <code>T</code> is: <code>template&lt;class T&gt;</code>. I am working in c++ code. I did test: </p>

<pre><code>const std::type_info&amp; ObjT= typeid(object);
std::cout&lt;&lt;"******the objT is: "&lt;&lt;&amp;ObjT&lt;&lt;std::endl;
</code></pre>

<p>But it crashes. Why?</p>
