Tags: #policy #design
"If done properly, a library author can accommodate all use cases with a single implementation..."
http://foonathan.net/blog/2017/02/08/policy-based-design-problem.html
"If done properly, a library author can accommodate all use cases with a single implementation..."
http://foonathan.net/blog/2017/02/08/policy-based-design-problem.html
foonathan.net
The problem with policy-based design
Policy-based design is great: It provides a lot of flexibility to the users of a class. They can use the exact policy for their use. However, it has a big problem: it creates a lot of different and incompatible types. This post explains it in more detail…