I can't find the right syntax even after reading cppreference on template params. The following doesn't compile, but hopefully describes what I want to do. What's the correct syntax?
template <class DisplayType>
class DisplayAdapter : public DisplayType
template<template <typename> DisplayAdapter>
class Painter // Takes an instance of DisplayAdapter, not a type!
Here is how it's supposed to be used:
Here's Ideone snippet for the whole thing: https://ideone.com/dvbYt8