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

If an argument is nameless, the compiler won't complain about it being unused.

No warning:

    void VFS::register_device(Badge<Device>, Device& device) { ... }
Warning:

    void VFS::register_device(Badge<Device> badge, Device& device) { ... }


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

Search: