This error may also appear if you are using wrong standart during compilation (e.g. your compiler is set to c++ standart 17 and the following call only appear in 18 or later).