mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
fix(MainDb): remove constexpr on exec (unsupported on android in this case)
This commit is contained in:
parent
57687e1b99
commit
66a6499f56
1 changed files with 2 additions and 2 deletions
|
|
@ -122,14 +122,14 @@ public:
|
|||
private:
|
||||
// Exec function with no return type.
|
||||
template<typename T>
|
||||
constexpr typename std::enable_if<std::is_same<T, void>::value, bool>::type exec () const {
|
||||
typename std::enable_if<std::is_same<T, void>::value, bool>::type exec () const {
|
||||
mFunction();
|
||||
return true;
|
||||
}
|
||||
|
||||
// Exec function with return type.
|
||||
template<typename T>
|
||||
constexpr typename std::enable_if<!std::is_same<T, void>::value, T>::type exec () const {
|
||||
typename std::enable_if<!std::is_same<T, void>::value, T>::type exec () const {
|
||||
return mFunction();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue