Hello there i have code like this one below and i don\'t know why it doesn\'t work.
class Clazz2; class Clazz { public: void smth(Clazz2& c) {
This is because non-constant references are not allowed to bind to temporary objects. References to const, on the other hand, can bind to temporary objects (see 8.3.5/5 of the C++11 Standard).
const