Error code E0015
A non-const
function was called in a const
context.
Erroneous code example:
ⓘ
All functions used in a const
context (constant or static expression) must
be marked const
.
To fix this error, you can declare create_some
as a constant function: