I have the following template class:
template <typename T> class ResourcePool {
inline void return_resource(T& instance) {
/* do something */
};
};
Then, in my main function, I do:
ResoucePool<int> pool;
pool.return_resource(5);
And I get the following error:
error: no matching function for call to `ResourcePool<int>::return_resource(int)`
Any idea what I'm doing wrong?