DARMA-tasking-internal / darma-frontend

Header library providing the frontend programming model for the DARMA asynchronous many-task model
Other
7 stars 0 forks source link

Fix range in serialization #22

Closed armarkos closed 7 years ago

armarkos commented 7 years ago

When I compile the following code:

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;

dhollman commented 7 years ago

closed by 19e87e7