remove c++17 dependency

This commit is contained in:
Rasmus Karlsson 2018-08-11 14:12:41 +02:00
parent 6fa32607d3
commit 7aa34ef9bc

View file

@ -88,7 +88,8 @@ public:
return AccessGuard<T>(this->element_, this->mutex_);
}
template <typename X = T, typename = std::enable_if_t<!std::is_const_v<X>>>
template <typename X = T,
typename = std::enable_if_t<!std::is_const<X>::value>>
AccessGuard<const X> accessConst() const
{
return AccessGuard<const T>(this->element_, this->mutex_);