Header files for boosting

Header files for a general boosting framework. 
Why do these need to be virtual?