switched to clang++ from g++ and removed clang++ warning