I am just getting started using Poco on a project. They used it a lot at my previous job (Schneider Electric)
The performance recommendation is to cache the reference and reuse it, but I am not sure how to do that when it returns a ref and not a pointer.
My normal mode would be to declare a boost::shared_ptr<logger> in the class members and then assign it in the ctor. So How do I use a reference in a c++ class without calling getLogger over and over again?
Get it in main and pass it into the CTOR?
PS why is the example for a C++ class a C-like example.





