class MyClass {
private:
MyClass* data_;
size_t n;
public:
void serialize (Archive& ar) { Ar | n | range(data_, data_ + n); }
};
I got the following error:
/Users/...../cmake/../include/darma/impl/serialization/archive_mixins.h:170:17: error: cannot assign to return value because function 'end' returns a const value val.end() = val.begin() + size;
When I compile the following code:
I got the following error:
/Users/...../cmake/../include/darma/impl/serialization/archive_mixins.h:170:17: error: cannot assign to return value because function 'end' returns a const value val.end() = val.begin() + size;