[boost] recoursive call of prod