updated script with c++0x definition