fixed a problem that caused g++ to fail, but not clang++