What you have written as an example looks correct. Your error message suggests a different issue at work? Perhaps the function find_keyword does not take a const string?
You are right :o)
The actual call I was making was
void test_class(keyword_cache &test)
{
test.find_keyword("black");
}
It was translating the "black" at a char array not a string.
Thanks for the help.
Ben