mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
remove c++17 dependency
This commit is contained in:
parent
6fa32607d3
commit
7aa34ef9bc
1 changed files with 2 additions and 1 deletions
|
@ -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_);
|
||||
|
|
Loading…
Reference in a new issue