jbeder / yaml-cpp

A YAML parser and emitter in C++
MIT License
4.91k stars 1.77k forks source link

Using yaml-cpp with gcc 4.3 #1255

Closed elaner1956 closed 6 months ago

elaner1956 commented 6 months ago

gcc 4.3 (which I have to use due to platform limitations) does not support atomic. It seems atomic is only used twice in yaml.cpp:

''' in file node_data.cpp: YAML_CPP_API atomic node::m_amount{0};

in file node.h static YAML_CPP_API atomic m_amount; ''' Is there a way to change these lines so they don't use atomic?