hostilefork/rencpp — pull request #18 by Morwenn (2014-12-25 16:50:25+00:00)
Title: Template nitpicks

Two commits here: the first one removes the need of the header in common.hpp and adds the missing . The second one replaces const references by forwarding references in the printing functions. The overloads of operator<< are not supposed to modify their parameters, therefore, the const references were ok. However, if an operator<< also has a faster overload with rvalue references, calling it instead may result in better performance. The perfect forwarding, as implement, will always pick the most suitable overload, so it does not remove any correctness and may freely take advantage of rvalue-references overloads.