Cannot get Boost Spirit grammar to use known keys for std::map<>
问题 I seem to be experiencing some mental block with Boost Spirit I just cannot get by. I have a fairly simple grammar I need to handle, where I would like to put the values into a struct, that contains a std::map<> as one of it's members. The key names for the pairs are known up front, so that only those are allowed. There could be one to many keys in the map, in any order with each key name validated via qi. The grammar looks something like this, as an example. test .|*|<hostname> add|modify