-
compile command:g++ main.cpp -o main.out -pthread -std=c++11 cmake command:CMAKE_CXX_FLAGS += -pthreadCMAKE_CXX_FLAGS += -std=c++11