E2310 Only member functions may be 'const' or 'volatile' (C++)

From RAD Studio