Did you set your compiler to c++11/14 mode?
"Does not work" is an error report for a bug between keyboard and chair. All hail Artie Effem
Forum Rules