Interate sobre todos los archivos en un directorio usando BOOST_FOREACH
¿Puede iterar sobre todos los archivos en un directorio usando boost :: filesystem y BOOST_FOREACH? Lo intent
path dirPath = ...
int fileCount = 0;
BOOST_FOREACH(const path& filePath, dirPath)
if(is_regular_file(filePath))
++fileCount;
Este código compila, ejecuta, pero no produce el resultado deseado.