Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change InterfacedActor<T> to InterfacedActor #20

Closed
veblush opened this issue May 17, 2016 · 0 comments
Closed

Change InterfacedActor<T> to InterfacedActor #20

veblush opened this issue May 17, 2016 · 0 comments
Assignees

Comments

@veblush
Copy link
Contributor

veblush commented May 17, 2016

CRTP (Curiously Recurring Template Pattern) is used for assigning an unique static member variable for each derived class T. This variable is for saving a table for message dispatching. It was quite easy to implement this with CRTP. But using CRTP has drawbacks like:

  • Not easy to read.
  • Verbose. (e.g. LongLongActor : InterfacedActor)
  • Error-prone. (e.g. Cat : InterfacedActor)

So let's strip CRTP away from InterfacedActor.

@veblush veblush self-assigned this May 17, 2016
veblush added a commit that referenced this issue May 19, 2016
veblush added a commit that referenced this issue May 19, 2016
@veblush veblush closed this as completed May 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant