I made a little c++ project to print the sizes of directories and files ordened. However, I noticed that I get a difference in size for what du reports and what my program, using boost::filesystem, reports. Could anyone tell me what kind of error I might be making, I have tried looking and debugging, but I'm just not seeing it.
https://github.com/jelmew/printSIzeTree
Kind regards, Jelmew
Edit: Nautilus prints the same size as my program does.