Code:
//test.cpp
#include<chrono>
#include<string>
using namespace std;
int main(){
string str("Europe/Oslo");
std::chrono::locate_zone(str);
}
Compile:
/tools/gcc/6.3.0/bin/g++ --std=c++11 test.cpp
Output:
test.cpp: In function ‘int main()’:
test.cpp:6:3: error: ‘locate_zone’ is not a member of ‘std::chrono’ std::chrono::locate_zone(str); ^~~
Aucun commentaire:
Enregistrer un commentaire