Suppose a construct like this:
class Interface
{
public:
template <typename T>
virtual void reportOperationError(T code , std::string message) = 0;
};
i don't understand the use case for this thing, in which case it is useful, and how?
In case you wonder, I haven't seen this code anywhere, just want to understand if this could have some particular use
error: templates may not be 'virtual'
. – Calamondin