Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

My favorite use of operator overloading is /= in boost::filesystem. You can append a path to a path by doing this:

mypath /= "home"; mypath /= "mystuff";



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: