error: no matching function for call to class A::A(A)
<p>I am trying to compile an old code and have bogged down by the error I am getting. Other searches show that some of these errors come as part of missing forward declarations. But that is not the case here as the code line below shows. I am not sure why is it cribbing for the default Constructor while that is not called from the code (line given below). Your help will be appreciated, Thank you.</p>

<pre><code>In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/x86_64-redhat-linux/32/bits/c++allocator.h:34,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/allocator.h:48,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/stl_tree.h:63,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/map:60,
                 from ./OrderItemSummary.h:22,
                 from OrderItemSummary.C:19:
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/ext/new_allocator.h: In member function âvoid __gnu_cxx::new_allocator&lt;_Tp&gt;::construct(_Tp*, _Args&amp;&amp; ...) [with _Args = TopasOrder, _Tp = TopasOrder]â:
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/vector.tcc:95:   instantiated from âvoid std::vector&lt;_Tp, _Alloc&gt;::emplace_back(_Args&amp;&amp; ...) [with _Args = TopasOrder, _Tp = TopasOrder, _Alloc = std::allocator&lt;TopasOrder&gt;]â
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/stl_vector.h:747:   instantiated from âvoid std::vector&lt;_Tp, _Alloc&gt;::push_back(_Tp&amp;&amp;) [with _Tp = TopasOrder, _Alloc = std::allocator&lt;TopasOrder&gt;]â
OrderItemSummary.C:246:   instantiated from here
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/ext/new_allocator.h:111: error: no matching function for call to âTopasOrder::TopasOrder(TopasOrder)â
./TopasOrder.h:49: note: candidates are: TopasOrder::TopasOrder(std::string, std::string, std::string, FtpComm*, TelnetComm*, std::string)
./TopasOrder.h:29: note:                 TopasOrder::TopasOrder(TopasOrder&amp;)
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/vector:69,
                 from ../../../../src/hp/lib/libosds/OsdsString.h:23,
                 from ./OrderItemSummary.h:23,
                 from OrderItemSummary.C:19:
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/vector.tcc: In member function âvoid std::vector&lt;_Tp, _Alloc&gt;::_M_insert_aux(__gnu_cxx::__normal_iterator&lt;typename std::_Vector_base&lt;_Tp, _Alloc&gt;::_Tp_alloc_type::pointer, std::vector&lt;_Tp, _Alloc&gt; &gt;, _Args&amp;&amp; ...) [with _Args = TopasOrder, _Tp = TopasOrder, _Alloc = std::allocator&lt;TopasOrder&gt;]â:
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/vector.tcc:100:   instantiated from âvoid std::vector&lt;_Tp, _Alloc&gt;::emplace_back(_Args&amp;&amp; ...) [with _Args = TopasOrder, _Tp = TopasOrder, _Alloc = std::allocator&lt;TopasOrder&gt;]â
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/stl_vector.h:747:   instantiated from âvoid std::vector&lt;_Tp, _Alloc&gt;::push_back(_Tp&amp;&amp;) [with _Tp = TopasOrder, _Alloc = std::allocator&lt;TopasOrder&gt;]â
OrderItemSummary.C:246:   instantiated from here
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/vector.tcc:314: error: no matching function for call to âTopasOrder::TopasOrder(TopasOrder)â
./TopasOrder.h:49: note: candidates are: TopasOrder::TopasOrder(std::string, std::string, std::string, FtpComm*, TelnetComm*, std::string)
./TopasOrder.h:29: note:                 TopasOrder::TopasOrder(TopasOrder&amp;)
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/stl_tree.h:62,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/map:60,
                 from ./OrderItemSummary.h:22,
                 from OrderItemSummary.C:19:
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/stl_algobase.h: In static member function âstatic _BI2 std::__copy_move_backward&lt;true, false, std::random_access_iterator_tag&gt;::__copy_move_b(_BI1, _BI1, _BI2) [with _BI1 = TopasOrder*, _BI2 = TopasOrder*]â:
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/stl_algobase.h:595:   instantiated from â_BI2 std::__copy_move_backward_a(_BI1, _BI1, _BI2) [with bool _IsMove = true, _BI1 = TopasOrder*, _BI2 = TopasOrder*]â
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/stl_algobase.h:605:   instantiated from â_BI2 std::__copy_move_backward_a2(_BI1, _BI1, _BI2) [with bool _IsMove = true, _BI1 = TopasOrder*, _BI2 = TopasOrder*]â
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/stl_algobase.h:676:   instantiated from â_BI2 std::move_backward(_BI1, _BI1, _BI2) [with _BI1 = TopasOrder*, _BI2 = TopasOrder*]â
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/vector.tcc:308:   instantiated from âvoid std::vector&lt;_Tp, _Alloc&gt;::_M_insert_aux(__gnu_cxx::__normal_iterator&lt;typename std::_Vector_base&lt;_Tp, _Alloc&gt;::_Tp_alloc_type::pointer, std::vector&lt;_Tp, _Alloc&gt; &gt;, _Args&amp;&amp; ...) [with _Args = TopasOrder, _Tp = TopasOrder, _Alloc = std::allocator&lt;TopasOrder&gt;]â
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/vector.tcc:100:   instantiated from âvoid std::vector&lt;_Tp, _Alloc&gt;::emplace_back(_Args&amp;&amp; ...) [with _Args = TopasOrder, _Tp = TopasOrder, _Alloc = std::allocator&lt;TopasOrder&gt;]â
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/stl_vector.h:747:   instantiated from âvoid std::vector&lt;_Tp, _Alloc&gt;::push_back(_Tp&amp;&amp;) [with _Tp = TopasOrder, _Alloc = std::allocator&lt;TopasOrder&gt;]â
OrderItemSummary.C:246:   instantiated from here
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/stl_algobase.h:561: error: no match for âoperator=â in â* -- __result = std::move [with _Tp = TopasOrder&amp;](((TopasOrder&amp;)(-- __last)))â
./TopasOrder.h:29: note: candidates are: TopasOrder&amp; TopasOrder::operator=(TopasOrder&amp;)
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/vector:64,
                 from ../../../../src/hp/lib/libosds/OsdsString.h:23,
                 from ./OrderItemSummary.h:23,
                 from OrderItemSummary.C:19:
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/stl_uninitialized.h: In static member function âstatic _ForwardIterator std::__uninitialized_copy&lt;&lt;anonymous&gt; &gt;::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = std::move_iterator&lt;TopasOrder*&gt;, _ForwardIterator = TopasOrder*, bool &lt;anonymous&gt; = false]â:
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/stl_uninitialized.h:117:   instantiated from â_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = std::move_iterator&lt;TopasOrder*&gt;, _ForwardIterator = TopasOrder*]â
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/stl_uninitialized.h:257:   instantiated from â_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, std::allocator&lt;_Tp&gt;&amp;) [with _InputIterator = std::move_iterator&lt;TopasOrder*&gt;, _ForwardIterator = TopasOrder*, _Tp = TopasOrder]â
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/stl_uninitialized.h:267:   instantiated from â_ForwardIterator std::__uninitialized_move_a(_InputIterator, _InputIterator, _ForwardIterator, _Allocator&amp;) [with _InputIterator = TopasOrder*, _ForwardIterator = TopasOrder*, _Allocator = std::allocator&lt;TopasOrder&gt;]â
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/vector.tcc:338:   instantiated from âvoid std::vector&lt;_Tp, _Alloc&gt;::_M_insert_aux(__gnu_cxx::__normal_iterator&lt;typename std::_Vector_base&lt;_Tp, _Alloc&gt;::_Tp_alloc_type::pointer, std::vector&lt;_Tp, _Alloc&gt; &gt;, _Args&amp;&amp; ...) [with _Args = TopasOrder, _Tp = TopasOrder, _Alloc = std::allocator&lt;TopasOrder&gt;]â
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/vector.tcc:100:   instantiated from âvoid std::vector&lt;_Tp, _Alloc&gt;::emplace_back(_Args&amp;&amp; ...) [with _Args = TopasOrder, _Tp = TopasOrder, _Alloc = std::allocator&lt;TopasOrder&gt;]â
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/stl_vector.h:747:   instantiated from âvoid std::vector&lt;_Tp, _Alloc&gt;::push_back(_Tp&amp;&amp;) [with _Tp = TopasOrder, _Alloc = std::allocator&lt;TopasOrder&gt;]â
OrderItemSummary.C:246:   instantiated from here
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/stl_uninitialized.h:74: error: no matching function for call to âTopasOrder::TopasOrder(TopasOrder)â
./TopasOrder.h:49: note: candidates are: TopasOrder::TopasOrder(std::string, std::string, std::string, FtpComm*, TelnetComm*, std::string)
./TopasOrder.h:29: note:                 TopasOrder::TopasOrder(TopasOrder&amp;)
</code></pre>

<p>The line 245 is  </p>

<pre><code>_orders.push_back(TopasOrder(_clli.c_str(), rec.orderNumber.c_str(), ec.itemNumber.c_str(), _ftpComm, _telComm, this-&gt;getPbxKey().c_str()));
</code></pre>
