Send the vector by reference:

    void printKeywords (Opm::ParserPtr parser, const std::vector<std::string>& keywords)