Note that there are some explanatory texts on larger screens.

plurals
  1. POpassing const std::auto_ptr<> as this argument of std::auto_ptr<_Tp>::operator std::auto_ptr_ref<_Tp1>() discards qualifiers
    primarykey
    data
    text
    <p>While compiling the code I found this error and am not able to trace this as I do not see any references to such errors on the net. Please help ---</p> <pre><code>In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/memory:52, from ./PbxComm.h:24, from ./NsaComm.h:23, from ./NsaBundle.h:22, from NsaBundle.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 = __gnu_cxx::__normal_iterator&lt;const std::auto_ptr&lt;SnowTTan&gt;*, std::vector&lt;std::auto_ptr&lt;SnowTTan&gt;, std::allocator&lt;std::auto_ptr&lt;SnowTTan&gt; &gt; &gt; &gt;, _ForwardIterator = std::auto_ptr&lt;SnowTTan&gt;*, 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 = __gnu_cxx::__normal_iterator&lt;const std::auto_ptr&lt;SnowTTan&gt;*, std::vector&lt;std::auto_ptr&lt;SnowTTan&gt;, std::allocator&lt;std::auto_ptr&lt;SnowTTan&gt; &gt; &gt; &gt;, _ForwardIterator = std::auto_ptr&lt;SnowTTan&gt;*]â /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 = __gnu_cxx::__normal_iterator&lt;const std::auto_ptr&lt;SnowTTan&gt;*, std::vector&lt;std::auto_ptr&lt;SnowTTan&gt;, std::allocator&lt;std::auto_ptr&lt;SnowTTan&gt; &gt; &gt; &gt;, _ForwardIterator = std::auto_ptr&lt;SnowTTan&gt;*, _Tp = std::auto_ptr&lt;SnowTTan&gt;]â /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/stl_vector.h:243: instantiated from âstd::vector&lt;_Tp, _Alloc&gt;::vector(const std::vector&lt;_Tp, _Alloc&gt;&amp;) [with _Tp = std::auto_ptr&lt;SnowTTan&gt;, _Alloc = std::allocator&lt;std::auto_ptr&lt;SnowTTan&gt; &gt;]â ./NsaForm207.h:45: instantiated from here /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/stl_uninitialized.h:74: error: passing âconst std::auto_ptr&lt;SnowTTan&gt;â as âthisâ argument of âstd::auto_ptr&lt;_Tp&gt;::operator std::auto_ptr_ref&lt;_Tp1&gt;() [with _Tp1 = SnowTTan, _Tp = SnowTTan]â discards qualifiers /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 = __gnu_cxx::__normal_iterator&lt;const std::auto_ptr&lt;line_range&gt;*, std::vector&lt;std::auto_ptr&lt;line_range&gt;, std::allocator&lt;std::auto_ptr&lt;line_range&gt; &gt; &gt; &gt;, _ForwardIterator = std::auto_ptr&lt;line_range&gt;*, 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 = __gnu_cxx::__normal_iterator&lt;const std::auto_ptr&lt;line_range&gt;*, std::vector&lt;std::auto_ptr&lt;line_range&gt;, std::allocator&lt;std::auto_ptr&lt;line_range&gt; &gt; &gt; &gt;, _ForwardIterator = std::auto_ptr&lt;line_range&gt;*]â /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 = __gnu_cxx::__normal_iterator&lt;const std::auto_ptr&lt;line_range&gt;*, std::vector&lt;std::auto_ptr&lt;line_range&gt;, std::allocator&lt;std::auto_ptr&lt;line_range&gt; &gt; &gt; &gt;, _ForwardIterator = std::auto_ptr&lt;line_range&gt;*, _Tp = std::auto_ptr&lt;line_range&gt;]â /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/stl_vector.h:243: instantiated from âstd::vector&lt;_Tp, _Alloc&gt;::vector(const std::vector&lt;_Tp, _Alloc&gt;&amp;) [with _Tp = std::auto_ptr&lt;line_range&gt;, _Alloc = std::allocator&lt;std::auto_ptr&lt;line_range&gt; &gt;]â ./NsaForm346.h:70: instantiated from here /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/stl_uninitialized.h:74: error: passing âconst std::auto_ptr&lt;line_range&gt;â as âthisâ argument of âstd::auto_ptr&lt;_Tp&gt;::operator std::auto_ptr_ref&lt;_Tp1&gt;() [with _Tp1 = line_range, _Tp = line_range]â discards qualifiers /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 = __gnu_cxx::__normal_iterator&lt;const std::auto_ptr&lt;tsg_500&gt;*, std::vector&lt;std::auto_ptr&lt;tsg_500&gt;, std::allocator&lt;std::auto_ptr&lt;tsg_500&gt; &gt; &gt; &gt;, _ForwardIterator = std::auto_ptr&lt;tsg_500&gt;*, 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 = __gnu_cxx::__normal_iterator&lt;const std::auto_ptr&lt;tsg_500&gt;*, std::vector&lt;std::auto_ptr&lt;tsg_500&gt;, std::allocator&lt;std::auto_ptr&lt;tsg_500&gt; &gt; &gt; &gt;, _ForwardIterator = std::auto_ptr&lt;tsg_500&gt;*]â /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 = __gnu_cxx::__normal_iterator&lt;const std::auto_ptr&lt;tsg_500&gt;*, std::vector&lt;std::auto_ptr&lt;tsg_500&gt;, std::allocator&lt;std::auto_ptr&lt;tsg_500&gt; &gt; &gt; &gt;, _ForwardIterator = std::auto_ptr&lt;tsg_500&gt;*, _Tp = std::auto_ptr&lt;tsg_500&gt;]â /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/stl_vector.h:243: instantiated from âstd::vector&lt;_Tp, _Alloc&gt;::vector(const std::vector&lt;_Tp, _Alloc&gt;&amp;) [with _Tp = std::auto_ptr&lt;tsg_500&gt;, _Alloc = std::allocator&lt;std::auto_ptr&lt;tsg_500&gt; &gt;]â ./NsaForm500.h:66: instantiated from here /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/stl_uninitialized.h:74: error: passing âconst std::auto_ptr&lt;tsg_500&gt;â as âthisâ argument of âstd::auto_ptr&lt;_Tp&gt;::operator std::auto_ptr_ref&lt;_Tp1&gt;() [with _Tp1 = tsg_500, _Tp = tsg_500]â discards qualifiers </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload