mirror of
https://github.com/Expand-sys/CCash
synced 2026-03-22 20:47:10 +11:00
constexpr will fail but inline, is more portable
This commit is contained in:
parent
09408ae800
commit
e399a5bc16
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ using namespace drogon;
|
|||
#define SET_CHANGES_ON
|
||||
#endif
|
||||
|
||||
__attribute__((always_inline)) inline bool ValidUsername(const std::string &name) noexcept
|
||||
constexpr bool ValidUsername(const std::string &name) noexcept
|
||||
{
|
||||
if (name.size() < min_name_size || name.size() > max_name_size)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue