google / glog

C++ implementation of the Google logging module
http://google.github.io/glog/
BSD 3-Clause "New" or "Revised" License
7.01k stars 2.05k forks source link

Cmake --build build Error #1096

Closed 7rwang closed 4 months ago

7rwang commented 4 months ago

When I use cmake --build build I encountered some errors such as error: no member named 'exchange' in namespace 'std' ctr(std::exchange(other.ctr, 0)),



I'm wondering whether the compiler default version matteres
sergiud commented 4 months ago

Aside from the incomplete log, latest glog requires a C++14 compliant compiler. Additionally, you need to take a look at the documentation that explains how to correctly integrate glog into own projects.

sergiud commented 4 months ago

I'm closing the issue since it is caused by incorrect usage of glog.