Commit a1adaf49 authored by Martin Heistermann's avatar Martin Heistermann

Fix compile for libstdc++ with _GLIBCXX_DEBUG

parent aebc2089
Pipeline #8872 passed with stage
in 3 minutes and 53 seconds
......@@ -227,7 +227,13 @@ private:
template<>
inline void OpenVolumeMeshPropertyT<bool>::swap(size_t _i0, size_t _i1)
{
data_.swap(data_[_i0], data_[_i1]);
// std::vector<bool>::swap(reference x, reference y) exists, but
// on libstdc++ with _GLIBCXX_DEBUG it doesn't compile
// (2018-02-26, libstdc++ 8.2.0)
auto tmp = data_[_i0];
data_[_i0] = data_[_i1];
data_[_i1] = tmp;;
}
template<>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment