sraaphorst / spelunker

Maze generation and solving library
Other
11 stars 2 forks source link

T78: Added CompositionHomomorphism, which works without need for specialization #80

Closed sraaphorst closed 6 years ago

sraaphorst commented 6 years ago

Added CompositionHomomorphism to Homomorphism, which inherits from Homomorphism and needs no specialization in order to work:

CompositionHomomorphism<S, T, U>::morph(const S &s) works as long as there are:

in the current scope. In case the default homomorphisms don't want to be used, fourth and fifth parameters to CompositionHomomorphism can be added to serve as the aforementioned two homomorphisms.