Commit 3f8e20aa authored by Ingo Klöcker's avatar Ingo Klöcker Committed by Ingo Klöcker
Browse files

Avoid deprecation warning

std::is_pod has been deprecated in C++20. Use is_standard_layout &&
is_trivial instead.
parent 30294906
......@@ -20,7 +20,7 @@ class cached
T m_value;
bool m_dirty;
using CallType = const typename std::conditional<std::is_pod<T>::value, T, T&>::type;
using CallType = const typename std::conditional<std::is_standard_layout<T>::value && std::is_trivial<T>::value, T, T&>::type;
public:
cached() : m_value(), m_dirty(true) {}
......
Supports Markdown
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