Cross platform C++ filesystem watcher
问题 I'm looking for a cross platform file system watcher, similar to the FileSystemWatcher class in .NET. As it's for a daemon/service, I'm not keen on Qt's QFileSystemWatcher. I'd really like to avoid it as I don't want to have a dependency on Qt as my program is going to be a daemon. I've also seen a proposal for such a class to be included in Boost, but as far as I know such a class has not yet been included. Is there a cross platform C++ file system watcher? 回答1: Qt is divided into modules,