At the following line
class Symbol : public boost::enable_shared_from_this<Symbol> {
I get the error:
error: invalid use of incomplete type struct boost::enable_shared_from_this<Symbol>
/usr/include/boost/smart_ptr/shared_ptr.hpp:63: error: declaration of struct boost::enable_shared_from_this<Symbol>
Any idea why am I getting this error. Symbol is an abstract class(if that matters)
Opps. The error was because I did not include the header which defines enable_shared_from_this (which is boost/enable_shared_from_this.hpp) .
It was only declared in /usr/include/boost/smart_ptr/shared_ptr.hpp
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With