While reading the boost spirit V2 docs, this SO-question and this top google spirit doc result for spirit classic/v1 I was not able to find any statement on the thread safety of boost spirit V2 grammars and rules. Some are claiming it's not like in classic anymore and a #define BOOST_SPIRIT_THREADSAFE
wouldn't have any effect, but still if V2 doesn't make different from classic in regards to thread safety, the mention source isn't very clear about if it's speaking about distinct instances or shared instances.
So my primary question is:
1. Are distinct spirit V2 grammar objects thread safe?
And optional if one knows:
2. Are shared spirit V2 grammars objects thread safe?
3. Are distinct spirit V2 rule objects thread safe?
4. Are shared spirit V2 rule objects thread safe?
I also flagged it for spirit x3 since it's the same question there.