I wrote my own c++ wrap with this feature (using config_setting_hook). Probably it is good to integrate this code to libconfig++. https://github.com/sonntex/configpp