Commit 9993f0c2 authored by dosuperuser's avatar dosuperuser

Revert const qualifier on local_actor

parent 2d7b0eae
...@@ -340,12 +340,12 @@ public: ...@@ -340,12 +340,12 @@ public:
/// Serializes the state of this actor to `sink`. This function is /// Serializes the state of this actor to `sink`. This function is
/// only called if this actor has set the `is_serializable` flag. /// only called if this actor has set the `is_serializable` flag.
/// The default implementation throws a `std::logic_error`. /// The default implementation throws a `std::logic_error`.
virtual error save_state(serializer& sink, unsigned int version) const; virtual error save_state(serializer& sink, unsigned int version);
/// Deserializes the state of this actor from `source`. This function is /// Deserializes the state of this actor from `source`. This function is
/// only called if this actor has set the `is_serializable` flag. /// only called if this actor has set the `is_serializable` flag.
/// The default implementation throws a `std::logic_error`. /// The default implementation throws a `std::logic_error`.
virtual error load_state(deserializer& source, unsigned int version) const; virtual error load_state(deserializer& source, unsigned int version);
/// Returns the currently defined fail state. If this reason is not /// Returns the currently defined fail state. If this reason is not
/// `none` then the actor will terminate with this error after executing /// `none` then the actor will terminate with this error after executing
......
...@@ -108,11 +108,11 @@ const char* local_actor::name() const { ...@@ -108,11 +108,11 @@ const char* local_actor::name() const {
return "actor"; return "actor";
} }
error local_actor::save_state(serializer&, const unsigned int) const { error local_actor::save_state(serializer&, const unsigned int) {
CAF_RAISE_ERROR("local_actor::serialize called"); CAF_RAISE_ERROR("local_actor::serialize called");
} }
error local_actor::load_state(deserializer&, const unsigned int) const { error local_actor::load_state(deserializer&, const unsigned int) {
CAF_RAISE_ERROR("local_actor::deserialize called"); CAF_RAISE_ERROR("local_actor::deserialize called");
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment