subtype reference argument compile error on gcc
<p>I have a problem compiling a c++ program with gcc version 4.6.3; I can compile this program with microsoft compiler (v 9.0) without problems.
This program is using some of my libraries I always used with microsoft compiler.</p>

<p>problem is when I try to pass a reference as argument that is a subtype of another: pseudo example here:</p>

<pre><code>class ObjManager{..}

class SubObjMng : public ObjManager{
public:
    inline SubObjMng() : ObjManager(0, ... ){}
};

class Test{
public:
   Test(int i, ObjManager &amp;obj_mng);
}


int main(){

SubObjMng myobjmng;

Test t(0, myobjmng);    //GCC ERROR HERE

}
</code></pre>

<p>output of the error is (real output for my program):</p>

<pre><code>globals.h:227:40: error: no matching function for call to cdk::HashMap::HashMap(unsigned int, cdk::PtrObjMng, cdk::cstrObjMng)
globals.h:227:40: note: candidates are:
contrib/cdklib/cdk_struct.h:485:12: note: cdk::HashMap::HashMap(uint32_t, cdk::ObjManager&amp;, cdk::ObjManager&amp;)
contrib/cdklib/cdk_struct.h:485:12: note:   no known conversion for argument 2 from cdk::PtrObjMng to cdk::ObjManager&amp;
</code></pre>

<p>anyone can help?
thanks!</p>
