mirror of
https://github.com/pantor/inja.git
synced 2026-02-26 21:36:27 +00:00
There is an inline function that assumes the compiler has copy elision optimization which is actually not required until C++17. GCC 4.8 does it but it requires the copy constructor to be defined which is not the case for std::ifstream. Fixed by passing reference by parameter. Co-authored-by: Rafael Lorenzo Alonso <ralorenz@cisco.com>