Hi Robert, Robert Ramey wrote:
John Pye wrote:
However I keep seeing the same error message, and can't work out what it means.
Try the following change:
int main(int argc, char *argv[]){
const dd D(10,20); // note: const const int x = 5; // note const
OK, so objects-to-be-serialised must always be const. I didn't
understand the rationale but I'll accept that there a good-but-obscure
reason for it.
I have a problem now with the BOOST_IS_ABSTRACT(ClassName) macro.
What header file(s) must I include in order for that macro to behave
correctly? Note that I am inside a namespace{...}when I write this
macro. Should that be OK?
Finally, if my base class is abstract and also contains no data
requiring serialisation (I guess it's a base class for a Composite
design pattern) then is it OK that my serialize(...) routine is empty?
Cheers
JP
My output:
------8<-------
object.h:56: error: ‘is_abstract’ is not a template
object.h:56: error: explicit specialization of non-template
‘optx::boost::serialization::is_abstract’
object.h:56: error: ‘mpl’ has not been declared
object.h:56: error: ISO C++ forbids declaration of ‘bool_’ with no type
object.h:56: error: typedef name may not be a nested-name-specifier
object.h:56: error: expected ‘;’ before ‘<’ token
...
--------------
My header file:
------8<--------
...
#include