I try to write function with constexpr
constexpr QString c(const QString &columnName);
but it output issue:
enclosing class of constexpr non-static member function 'QString DatabaseHandler::c(const QString&) const' is not a literal type constexpr QString c(const QString &columnName);
I very bad know C++ 11 yet so cannot undestand this bug. What does it mean?
P.S. If I add static then it also output issue Invalid return type 'QString'.