Improved C++11 snippets