try including #include
<boost/serialization/is_abstract.hpp> to the top of the program. This would bring demo.cpp up to date.
Robert Ramey