|
Boost : |
Subject: [boost] [Serialization] virtual function and virtual inheritance
From: fab (fabien.castan.dev_at_[hidden])
Date: 2010-01-25 17:24:37
Hi,
I have a compilation error with a virtual function inside a virtual base
class.
For example, I just add a function f() inside the unit test :
"test_diamond.cpp".
class base {
...
virtual void f() =0;
...
};
class derived1 {
...
virtual void f(){}
...
};
gcc 4.3, returns me an error:
error: no unique final overrider for `virtual void base::f()' in
`boost::detail::is_virtual_base_of_impl<derived1, final, mpl_::bool_<
true> >::X'
The same code works properly with msvc 2005.
Best regards,
Fabien Castan
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk