Hi,
I figured out a bug in OpenC++, MetacompilerConfiguration.h contains an
breaking compile error:
<mailto:ope...@li...> g++ -DHAVE_CONFIG_H -I. -I.
-I.. -I. -I.. -g -O2 -MT driver.lo -MD -MP -MF .deps/driver.Tpo -c
driver.cc -fPIC -DPIC -o .libs/driver.o
In file included from /usr/include/c++/3.4/backward/strstream:51,
from driver.cc:47:
/usr/include/c++/3.4/backward/backward_warning.h:32:2: warning: #warning
This file includes at least one deprecated or antiquated header. Please
consider using one of the 32 headers found in section 17.4.1.2 of the
C++ standard. Examples include substituting the <X> header for the <X.h>
header for C++ includes, or <iostream> instead of the deprecated header
<iostream.h>. To disable this warning use -Wno-deprecated.
/usr/include/c++/3.4/bits/stl_algobase.h: In function `void
std::swap(_Tp&, _Tp&) [with _Tp =
std::auto_ptr<Opencxx::MetacompilerConfiguration::IteratorIface>]':
../opencxx/MetacompilerConfiguration.h:50: instantiated from here
/usr/include/c++/3.4/bits/stl_algobase.h:132: error: passing `const
std::auto_ptr<Opencxx::MetacompilerConfiguration::IteratorIface>' as
`this' argument of `std::auto_ptr<_Tp>::operator
std::auto_ptr_ref<_Tp1>() [with _Tp1 =
Opencxx::MetacompilerConfiguration::IteratorIface, _Tp =
Opencxx::MetacompilerConfiguration::IteratorIface]' discards qualifiers
make[1]: *** [driver.lo] Error 1
make[1]: Leaving directory `/usr/src/CVS_DATA/opencxx/opencxx'
make: *** [all] Error 2
In my opinion it is the new std::auto_ptr which, afaik, has been modified.
BR
Vinzenz Feenstra
|