converting this to a cpp project using boost, too....