parsing into structs with boolean or enum members with boost spirit x3
<p>If I have a struct:</p>

<pre><code>struct person{
    bool is_male;
    std::string name;
    std::vector&lt;std::string&gt; friends;
}
</code></pre>

<p>or</p>

<pre><code>enum class gender_t{male, female}
struct person{
        gender_t gender;
        std::string name;
        std::vector&lt;std::string&gt; friends;
}
</code></pre>

<p>how can I parse into this struct using boost.spirit X3?
how would a rule look like to parse a string like "alice male bob" and the parser returning a object with name alice, which is male and has one friend bob.
How would it look like if the gender is only explicit said if the person isnt female?</p>