sajty/ember — comment on commit bdf80d1bece1cc5512eebeb41a6e962b5c3b2557
File: src/services/input/Input.cpp line 519
By erikhjortsberg:

Whenever you catch, always catch as const reference.
I.e.
} catch (const boost:thread_interrupted& ex) {

The "const" is to make sure that you catch an exception which for some reason is const (not normal behaviour, but could happen).
The reference is to make sure you don't perform any unnecessary copying.