Hi,
I added an Bugfix for the compilation problems with gcc 3.4.2 to the
occ-core CVS modul
There are compilation problems with MetacompilerConfiguration.h in
opencxx and occ-core, if you got this
problem replace the files:
OpenC++:
opencxx/opencxx/MetacompilerConfiguration.h
OpenC++ Core:
occ-core/occ-core/analyzer/MetacompilerConfiguration.h
with the file in the CVS
Problem occours with following error message:
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
taken from MetacompilerConfiguration.h
Iterator& operator=(Iterator iter)
{
std::swap(impl_, iter.impl_); // <- This line causes the error
return *this;
}
I changed it to:
Iterator& operator=(Iterator iter)
{
auto_ptr<IteratorIface> tmp = impl_;
impl_ = iter.impl_;
iter.impl_ = tmp;
// std::swap(impl_, iter.impl_); // <- This line causes the error
return *this;
}
Now you're either be abled to change the lines by yourself or get the
File from CVS
BR
Vinzenz Feenstra
|