Layer now 10 times faster if compiled with -std=c++11