@kis2009dsh 
The compiler which supports `c++11` will do a default optimization for this.