PrevUpHomeNext

Placeholder Unification

Phoenix uses boost::is_placeholder for recognizing placeholders:

template <typename T>
struct is_placeholder
{
    static const int value = 0;
};

To adapt your own placeholder, the nested value needs to be greater than 0 for your types. This is done by specializing this trait.


PrevUpHomeNext